Loading snippets/basop/check-float-ref-companion-branch-exists-for-porting-merge-requests.sh +5 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,11 @@ fi # if this does indeed look like a porting branch, get the float companion branch - if that is the default, then warn about possible typo/missing branch float_ref_branchname=$CI_COMMIT_REF_NAME if [ "$float_ref_branchname" == "main" ]; then cd $SCRIPTS_DIR git fetch origin exit_code_ls_remote=0 git ls-remote --exit-code --heads origin refs/heads/$float_ref_branchname || exit_code_ls_remote=$? if [ "$exit_code_ls_remote" != "0" ]; then set +x printf "$MSG_NO_FLOAT_REF_BRANCH_FOUND" "$CI_COMMIT_REF_NAME" exit 123 Loading Loading
snippets/basop/check-float-ref-companion-branch-exists-for-porting-merge-requests.sh +5 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,11 @@ fi # if this does indeed look like a porting branch, get the float companion branch - if that is the default, then warn about possible typo/missing branch float_ref_branchname=$CI_COMMIT_REF_NAME if [ "$float_ref_branchname" == "main" ]; then cd $SCRIPTS_DIR git fetch origin exit_code_ls_remote=0 git ls-remote --exit-code --heads origin refs/heads/$float_ref_branchname || exit_code_ls_remote=$? if [ "$exit_code_ls_remote" != "0" ]; then set +x printf "$MSG_NO_FLOAT_REF_BRANCH_FOUND" "$CI_COMMIT_REF_NAME" exit 123 Loading