Skip to content

Commit

Permalink
[prompt] fix gitster local var
Browse files Browse the repository at this point in the history
separate declaration and initialization of local array variable

Closes zimfw#21
  • Loading branch information
KoharaKazuya authored and Eriner committed Jan 12, 2016
1 parent 0509242 commit b23f7ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/git/functions/parse_git_dirty
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit b23f7ec

Please sign in to comment.