From: Corey Farrell Date: Wed, 12 Sep 2018 17:39:23 +0000 (-0400) Subject: CI: Use .gitreview to default BRANCH_NAME. X-Git-Tag: 13.24.0-rc1~114^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1f6a323a0c8b07df968b23089cf892a393bbb2b;p=thirdparty%2Fasterisk.git CI: Use .gitreview to default BRANCH_NAME. This ensures that binary modules are avoided in the master branch even if BRANCH_NAME is not set. Change-Id: I79162d2063f22fa9d6b31fde4827ace2dd5bf0da --- diff --git a/tests/CI/buildAsterisk.sh b/tests/CI/buildAsterisk.sh index b36e7de6c4..d9c8678434 100755 --- a/tests/CI/buildAsterisk.sh +++ b/tests/CI/buildAsterisk.sh @@ -6,6 +6,10 @@ REF_DEBUG=0 DISABLE_BINARY_MODULES=0 source $CIDIR/ci.functions +if [ -z $BRANCH_NAME ]; then + BRANCH_NAME=$(git config -f .gitreview --get gerrit.defaultbranch) +fi + gen_cats() { set +x action=$1