summaryrefslogtreecommitdiff
path: root/bash-git-prompt.in
diff options
context:
space:
mode:
Diffstat (limited to 'bash-git-prompt.in')
-rwxr-xr-xbash-git-prompt.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/bash-git-prompt.in b/bash-git-prompt.in
index b57bef2..acc1a59 100755
--- a/bash-git-prompt.in
+++ b/bash-git-prompt.in
@@ -32,7 +32,9 @@ then
echo "$status" | grep -q "^.\S" && wtClean=false || wtClean=true
echo "$status" | grep -q "^\S" && idxClean=false || idxClean=true
- [ $(git show-ref "${branch}" --head -s | \
+ [ $(git show-ref "${branch}" --head | \
+ grep -vF ' refs/original/refs/' | \
+ cut -d' ' -f1 | \
uniq | \
wc -l
) -eq 1 ] && \