fix a globbing error in zgit_hasuntracked
This commit is contained in:
parent
317a982237
commit
65d1d014b3
1 changed files with 1 additions and 2 deletions
|
|
@ -174,8 +174,7 @@ zgit_isworktreeclean() {
|
||||||
|
|
||||||
zgit_hasuntracked() {
|
zgit_hasuntracked() {
|
||||||
zgit_isgit || return 1
|
zgit_isgit || return 1
|
||||||
local -a flist
|
noglob set -A flist $(git ls-files --others --exclude-standard)
|
||||||
flist=($(git ls-files --others --exclude-standard))
|
|
||||||
if [ $#flist -gt 0 ]; then
|
if [ $#flist -gt 0 ]; then
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue