Merge branch 'jk/remote-helper-with-signed-tags'
[gitweb.git] / contrib / completion / git-prompt.sh
index 756a9514591c7664c82c93d3a6d50d91f46857d8..054c52e90aeabb9a9ab5d4f9ee38b0799126b338 100644 (file)
@@ -340,7 +340,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