summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--01_Functions.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh
index 7a29c13..99b8296 100644
--- a/01_Functions.zsh
+++ b/01_Functions.zsh
@@ -72,7 +72,7 @@ get_git_branch ()
# If neither on a named commit-ish, show abbreviated commit-id
[ "$my_git_branch" == "(undefined)" ] &&\
- my_git_branch="($(git-show --pretty=format:%H 2>&- | head -n1))"
+ my_git_branch="($(git-rev-parse HEAD 2>&-))"
fi
echo $my_git_branch