d0842b431e9ebae66ae9373e9e5614341c6f5803

Author
Filipe Chagas <filipe@ochagas.com>
Committer
Filipe Chagas <filipe@ochagas.com>
Date

Message

Fix gitfast problem for untracket files

When showing the char % for untracket files, it was not being escaped
so there was shown a space in the place. It was also removing any char
that was right just after.

Diff

 1diff --git a/plugins/gitfast/git-prompt.sh b/plugins/gitfast/git-prompt.sh
 2index bf20491ec33e467f6b9591d94a2e27bc9e3d93e9..afd76e86ebe729c2e6693b81a52842017a5aa079 100644
 3--- a/plugins/gitfast/git-prompt.sh
 4+++ b/plugins/gitfast/git-prompt.sh
 5@@ -275,7 +275,7 @@ __git_ps1 ()
 6 
 7 			if [ -n "${GIT_PS1_SHOWUNTRACKEDFILES-}" ]; then
 8 				if [ -n "$(git ls-files --others --exclude-standard)" ]; then
 9-					u="%"
10+					u="%%"
11 				fi
12 			fi
13