summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rwxr-xr-xdevel/check_if_signed5
1 files changed, 5 insertions, 0 deletions
diff --git a/devel/check_if_signed b/devel/check_if_signed
index a053bbc0c8..b8b4fef112 100755
--- a/devel/check_if_signed
+++ b/devel/check_if_signed
@@ -7,6 +7,11 @@ fi
echo "target=$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"
echo "source=$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"
+if test -z "$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"; then
+ CI_MERGE_REQUEST_SOURCE_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
+ echo "branch=$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"
+fi
+
# create list of commits of the current branch
commits=$(git rev-list --no-merges $CI_MERGE_REQUEST_TARGET_BRANCH_NAME..$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME)