diff options
author | Erich Eckner <git@eckner.net> | 2022-03-21 08:32:50 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-03-21 08:32:50 +0100 |
commit | 07579946ba4a6b4d1e07d0c302b3be4701422849 (patch) | |
tree | ec68bc5ba422decbc81b9f709a9a0d32da548f59 /bash-git-prompt.in | |
parent | b27cab9323abbcd699639d0e28e9a8ab1df72650 (diff) | |
download | bash-git-prompt-07579946ba4a6b4d1e07d0c302b3be4701422849.tar.xz |
bash-git-prompt: ignore original refs
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 ] && \ |