]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Let check_if_signed fail if git fails
authorTim Rühsen <tim.ruehsen@gmx.de>
Thu, 28 Mar 2019 09:41:13 +0000 (10:41 +0100)
committerTim Rühsen <tim.ruehsen@gmx.de>
Thu, 28 Mar 2019 14:05:50 +0000 (15:05 +0100)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
.gitlab-ci.yml
devel/check_if_signed

index a6ad5ec06490195521f8a1f1722c5dbe3a3c4892..ba7978cff446ab0538f8ee2cd73d02fb23a31919 100644 (file)
@@ -52,7 +52,7 @@ commit-check:
     policy: pull
   script:
     # we want $ALPINE_BASE_BUILD without git, so add it here
-    - apk add git
+    - apk add git bash
     - devel/check_if_signed
   retry: 0
 
index b8b4fef112b616a630fe9dadd61190c524a08fbf..3d05d4fcbb6dd772bf4b7e4316ee40b4cb8ae8bd 100755 (executable)
@@ -1,7 +1,9 @@
-#!/usr/bin/env sh
+#!/usr/bin/env bash
+
+set -e
 
 if test -z "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"; then
-  CI_MERGE_REQUEST_TARGET_BRANCH_NAME="master"
+  CI_MERGE_REQUEST_TARGET_BRANCH_NAME="origin/master"
 fi
 
 echo "target=$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"