From 07579946ba4a6b4d1e07d0c302b3be4701422849 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 21 Mar 2022 08:32:50 +0100 Subject: bash-git-prompt: ignore original refs --- bash-git-prompt.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ] && \ -- cgit v1.2.3-70-g09d2