From 470d07b45e9e7cdfc8369c9697a0844bdae3418f Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Tue, 19 Apr 2022 14:05:54 +0200 Subject: [PATCH] Improve current branch determination --- bin/update-env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/update-env b/bin/update-env index 3878ec6..6c4aaf7 100755 --- a/bin/update-env +++ b/bin/update-env @@ -11,7 +11,7 @@ else fi if [[ "$CI_COMMIT_REF_NAME" = "" ]]; then if [[ -d .git ]]; then - PROJECT_BRANCH=$(git rev-parse --abbrev-ref HEAD) + PROJECT_BRANCH=$(git branch --show-current) else PROJECT_BRANCH=develop fi -- GitLab