From 7f7490ff47185359079734b86c4ef9e2718a4bb5 Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Thu, 5 May 2022 18:25:22 +0800 Subject: [PATCH] HBASE-26995 Remove ref guide check in pre commit and nightly for branches other than master (#4399) Signed-off-by: Guanghao Zhang Signed-off-by: Peter Somogyi (cherry picked from commit 9a41117ca5edaa381b913efb3b8d48f7c98e905c) --- dev-support/hbase-personality.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh index 081ee5aaa4d..e286a0ce749 100755 --- a/dev-support/hbase-personality.sh +++ b/dev-support/hbase-personality.sh @@ -393,10 +393,13 @@ function refguide_filefilter { local filename=$1 - if [[ ${filename} =~ src/main/asciidoc ]] || - [[ ${filename} =~ src/main/xslt ]] || - [[ ${filename} =~ hbase-common/src/main/resources/hbase-default\.xml ]]; then - add_test refguide + # we only generate ref guide on master branch now + if [[ "${PATCH_BRANCH}" = master ]]; then + if [[ ${filename} =~ src/main/asciidoc ]] || + [[ ${filename} =~ src/main/xslt ]] || + [[ ${filename} =~ hbase-common/src/main/resources/hbase-default\.xml ]]; then + add_test refguide + fi fi }