From ae624f87c18699ae082fabf9f4193839425af68a Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 18 Nov 2020 13:39:14 +0100 Subject: do_release.sh: fix for older git on gitlab CI --- tools/do_release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/do_release.sh b/tools/do_release.sh index 8171334..7bbf609 100644 --- a/tools/do_release.sh +++ b/tools/do_release.sh @@ -1,7 +1,7 @@ #!/bin/sh set -e -SOURCE_BRANCH=$(git branch --show-current) +SOURCE_BRANCH=$(git rev-parse --abbrev-ref HEAD) RELEASE_TRIGGER=${RELEASE_TRIGGER:-"Manual command-line makefile invocation"} set -x GIT_AUTHOR_NAME=${GIT_AUTHOR_NAME:-'STM32Square Auto-Release Script'} -- cgit