aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/do_release.sh2
1 files changed, 1 insertions, 1 deletions
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'}