summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2008-03-14 23:17:14 +0100
committerHugues Hiegel <hugues@hiegel.fr>2008-03-14 23:17:14 +0100
commit692831f72cd77e466037e14af5114e0f0b06c566 (patch)
treece87edac4244c0769c33f8b130f7a02d4b0aa9d5
parentde5223db5d99bda974c28820055a286e0e604a61 (diff)
Use git-rev-parse to get the commit-id, instead of 'git-show | head'..
-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