From 65d1d014b389f04c0cadaf9147aaa5390c6e2f49 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sat, 24 Mar 2012 09:49:01 -0700 Subject: [PATCH] fix a globbing error in zgit_hasuntracked --- zsh/functions/zgitinit | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zsh/functions/zgitinit b/zsh/functions/zgitinit index 8355d6f..b428cc3 100644 --- a/zsh/functions/zgitinit +++ b/zsh/functions/zgitinit @@ -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