diff --git a/deploy.sh b/deploy.sh index 8b53c6a..7667d99 100755 --- a/deploy.sh +++ b/deploy.sh @@ -23,7 +23,7 @@ fi # TODO: When deployment is new enough, use the top command. #currentbranch="$(git branch --show-current)" -currentbranch="$(git branch --format '%(refname:short)')" +currentbranch="$(git rev-parse --abbrev-ref HEAD)" # If we are not on target branch, switch and run again if test "$currentbranch" '!=' "$branch"; then