Skip to content
Snippets Groups Projects
Commit 470d07b4 authored by jurgenhaas's avatar jurgenhaas
Browse files

Improve current branch determination

parent 302d9c44
No related branches found
Tags v2.0.8
No related merge requests found
Pipeline #469501 passed
...@@ -11,7 +11,7 @@ else ...@@ -11,7 +11,7 @@ else
fi fi
if [[ "$CI_COMMIT_REF_NAME" = "" ]]; then if [[ "$CI_COMMIT_REF_NAME" = "" ]]; then
if [[ -d .git ]]; then if [[ -d .git ]]; then
PROJECT_BRANCH=$(git rev-parse --abbrev-ref HEAD) PROJECT_BRANCH=$(git branch --show-current)
else else
PROJECT_BRANCH=develop PROJECT_BRANCH=develop
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment