Merge branch 'jc/submitting-patches-mention-send-email'
[gitweb.git] / contrib / completion / git-prompt.sh
index 214e859f99e7d896a6fa45a737b5b3e2a629176f..f18aedc73be9daf4aab564beecb7bae29ea759c9 100644 (file)
@@ -487,7 +487,7 @@ __git_ps1 ()
 
                if [ -n "${GIT_PS1_SHOWUNTRACKEDFILES-}" ] &&
                   [ "$(git config --bool bash.showUntrackedFiles)" != "false" ] &&
-                  git ls-files --others --exclude-standard --error-unmatch -- '*' >/dev/null 2>/dev/null
+                  git ls-files --others --exclude-standard --error-unmatch -- ':/*' >/dev/null 2>/dev/null
                then
                        u="%${ZSH_VERSION+%}"
                fi