From b23f7ec6d9702e50a7f886c6632ca45c0da9aa7b Mon Sep 17 00:00:00 2001 From: KoharaKazuya Date: Tue, 12 Jan 2016 21:35:35 +0900 Subject: [PATCH] [prompt] fix gitster local var separate declaration and initialization of local array variable Closes #21 --- modules/git/functions/parse_git_dirty | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/git/functions/parse_git_dirty b/modules/git/functions/parse_git_dirty index 6a0f0ea..1b8be78 100644 --- a/modules/git/functions/parse_git_dirty +++ b/modules/git/functions/parse_git_dirty @@ -2,7 +2,8 @@ # not supporting git < 1.7.2; upgrade your shit local STATUS='' -local FLAGS=('--porcelain' '--ignore-submodules=dirty') +local FLAGS +FLAGS=('--porcelain' '--ignore-submodules=dirty') if [[ ${zgit_hide_prompt} != 'true' ]]; then if [[ "${zgit_disable_untracked_dirty}" == "true" ]]; then FLAGS+='--untracked-files=no'