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
No related tags found
No related merge requests found
Pipeline #469501 passed
......@@ -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
......
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