diff options
author | Erich Eckner <git@eckner.net> | 2016-05-24 13:40:08 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-05-24 13:40:08 +0200 |
commit | e421e815c83cbace74dd8c5f88b175806b2bb12a (patch) | |
tree | 5407399e1d385c2b9433ac8937a017ed5911d018 | |
parent | 2fdae76a02418e54c9e97aa4e33205392d5f9bb7 (diff) | |
download | bash-git-prompt-e421e815c83cbace74dd8c5f88b175806b2bb12a.tar.xz |
remote HEAD ignorieren
-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 ] && \ |