1
0
Fork 0
mirror of synced 2024-06-01 06:41:12 -04:00

[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

View file

@ -2,7 +2,8 @@
# not supporting git < 1.7.2; upgrade your shit # not supporting git < 1.7.2; upgrade your shit
local STATUS='' local STATUS=''
local FLAGS=('--porcelain' '--ignore-submodules=dirty') local FLAGS
FLAGS=('--porcelain' '--ignore-submodules=dirty')
if [[ ${zgit_hide_prompt} != 'true' ]]; then if [[ ${zgit_hide_prompt} != 'true' ]]; then
if [[ "${zgit_disable_untracked_dirty}" == "true" ]]; then if [[ "${zgit_disable_untracked_dirty}" == "true" ]]; then
FLAGS+='--untracked-files=no' FLAGS+='--untracked-files=no'