fix a globbing error in zgit_hasuntracked

This commit is contained in:
Sami Samhuri 2012-03-24 09:49:01 -07:00
parent 317a982237
commit 65d1d014b3

View file

@ -174,8 +174,7 @@ zgit_isworktreeclean() {
zgit_hasuntracked() {
zgit_isgit || return 1
local -a flist
flist=($(git ls-files --others --exclude-standard))
noglob set -A flist $(git ls-files --others --exclude-standard)
if [ $#flist -gt 0 ]; then
return 0
else