diff options
-rwxr-xr-x | bash-git-prompt.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-git-prompt.in b/bash-git-prompt.in index c9ac219..2f40afe 100755 --- a/bash-git-prompt.in +++ b/bash-git-prompt.in @@ -28,7 +28,7 @@ then echo "$status" | grep -q "^.\S" && wtClean=false || wtClean=true echo "$status" | grep -q "^\S" && idxClean=false || idxClean=true - [ $(git show-ref HEAD "${branch}" --head -s | \ + [ $(git show-ref "${branch}" --head -s | \ uniq | \ wc -l ) -eq 1 ] && \ |