summaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-04-26 11:12:30 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-04-26 11:12:30 -0700
commit1a475c4a2f4fead39b4e80dcdfbcf0627dfb5327 (patch)
tree160543c594d731528801ca0f516abd403c6d8b96 /contrib/completion
parentMerge branch 'jk/receive-pack-deadlocks-with-early-failure' into maint (diff)
parentprompt: fix untracked files for zsh (diff)
downloadtgif-1a475c4a2f4fead39b4e80dcdfbcf0627dfb5327.tar.xz
Merge branch 'fc/untracked-zsh-prompt' into maint
* fc/untracked-zsh-prompt: prompt: fix untracked files for zsh
Diffstat (limited to 'contrib/completion')
-rw-r--r--contrib/completion/git-prompt.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-prompt.sh b/contrib/completion/git-prompt.sh
index 756a951459..054c52e90a 100644
--- a/contrib/completion/git-prompt.sh
+++ b/contrib/completion/git-prompt.sh
@@ -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