summaryrefslogtreecommitdiff
path: root/01_Functions.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@openwide.fr>2009-07-31 09:51:43 +0200
committerHugues Hiegel <hugues.hiegel@openwide.fr>2009-07-31 09:51:43 +0200
commitd92e40f3ae6db4694d3d78344c9530dc79b012cc (patch)
tree9fe9fc7849c821b6349e856463a58df9e243dadc /01_Functions.zsh
parent5ecd382eb00360c3fec2f748496ef3e8f590b372 (diff)
[Funcs] removes the trailing '^0' for named-revs
Diffstat (limited to '01_Functions.zsh')
-rw-r--r--01_Functions.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh
index 5ec09fd..4c376c9 100644
--- a/01_Functions.zsh
+++ b/01_Functions.zsh
@@ -100,7 +100,7 @@ get_git_branch ()
# If not on a working GIT branch, get the named current commit-ish inside parenthesis
[ "$my_git_branch" = "(no branch)" ] &&\
checkouted_branch="" && \
- my_git_branch="$(git-name-rev --name-only HEAD 2>&- | sed 's,^tags/,,;s,^remotes/,,')"
+ my_git_branch="$(git-name-rev --name-only HEAD 2>&- | sed 's,^tags/,,;s,^remotes/,,;s,\^0$,,')"
# If neither on a named commit-ish, show commit-id
if [ "$my_git_branch" = "undefined" ]