From 1bfb6902dedd8cb7e587e1cfa95b966b14171cd6 Mon Sep 17 00:00:00 2001 From: Mohammad-Ali Minaie Date: Fri, 2 Nov 2018 22:05:13 -0400 Subject: [PATCH] fixed getting the current branch in the push script --- push.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/push.sh b/push.sh index bce19bfa..947cad6b 100755 --- a/push.sh +++ b/push.sh @@ -7,7 +7,7 @@ git status #git commit -m "${com}" #echo $(git branch) git branch -gitBranch=$(git branch) +gitBranch=$(git symbolic-ref --short HEAD) read -p "Is this the correct branch (y/n)?" CONT if [ "$CONT" = "y" ]; then