diff options
Diffstat (limited to 'devel')
-rwxr-xr-x | devel/check_if_signed | 5 |
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) |