diff options
Diffstat (limited to 'bash-git-prompt.in')
-rwxr-xr-x | bash-git-prompt.in | 4 |
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 ] && \ |