Loading snippets/basop/branch-is-up-to-date-with-target-pre.sh +3 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,9 @@ if [ $commits_behind_count -ne 0 ]; then exit 1 fi # stop echoing from here on, this is anyway only dbg printout set +x # if we are up-to-date, store the commit SHA's for all branches MERGE_TARGET_COMMIT="$(git rev-parse "origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME")" echo "MERGE_TARGET_COMMIT is $MERGE_TARGET_COMMIT" Loading Loading
snippets/basop/branch-is-up-to-date-with-target-pre.sh +3 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,9 @@ if [ $commits_behind_count -ne 0 ]; then exit 1 fi # stop echoing from here on, this is anyway only dbg printout set +x # if we are up-to-date, store the commit SHA's for all branches MERGE_TARGET_COMMIT="$(git rev-parse "origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME")" echo "MERGE_TARGET_COMMIT is $MERGE_TARGET_COMMIT" Loading