[prompt] fix gitster local var

separate declaration and initialization of local array variable

Closes #21
This commit is contained in:
KoharaKazuya 2016-01-12 21:35:35 +09:00 committed by Matt Hamilton
parent 050924256e
commit b23f7ec6d9
1 changed files with 2 additions and 1 deletions

View File

@ -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'