Commit a9c2a038 authored by Jan Kiene's avatar Jan Kiene
Browse files

fix snippet

parent 227bd777
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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