summaryrefslogtreecommitdiff
path: root/bash-git-prompt.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-03-21 08:32:50 +0100
committerErich Eckner <git@eckner.net>2022-03-21 08:32:50 +0100
commit07579946ba4a6b4d1e07d0c302b3be4701422849 (patch)
treeec68bc5ba422decbc81b9f709a9a0d32da548f59 /bash-git-prompt.in
parentb27cab9323abbcd699639d0e28e9a8ab1df72650 (diff)
downloadbash-git-prompt-07579946ba4a6b4d1e07d0c302b3be4701422849.tar.xz
bash-git-prompt: ignore original refs
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 ] && \