add tests for rebasing root
[gitweb.git] / contrib / completion / git-prompt.sh
index eea3568e925a2fce7cc8c65148e4cf771317b532..eaf5c369aacde207cbad4c9df9574e7b26634bb7 100644 (file)
@@ -351,7 +351,7 @@ __git_ps1 ()
                           [ "$(git config --bool bash.showUntrackedFiles)" != "false" ] &&
                           [ -n "$(git ls-files --others --exclude-standard)" ]
                        then
-                               u="%"
+                               u="%${ZSH_VERSION+%}"
                        fi
 
                        if [ -n "${GIT_PS1_SHOWUPSTREAM-}" ]; then