Use older command for getting current branch name

newer-dal
LEdoian 3 years ago
parent a87240853d
commit 9b2cfe6437

@ -21,7 +21,9 @@ else
branch=master branch=master
fi fi
currentbranch="$(git branch --show-current)" # TODO: When deployment is new enough, use the top command.
#currentbranch="$(git branch --show-current)"
currentbranch="$(git branch --format '%(refname:short)')"
# If we are not on target branch, switch and run again # If we are not on target branch, switch and run again
if test "$currentbranch" -ne "$branch" if test "$currentbranch" -ne "$branch"

Loading…
Cancel
Save