vcsinfo:git: Fix regression identifying dirty workdir
- Id
- 91b8f8f2baf35267aebde7a14833649f9dcc6647
- Author
- Caio
- Commit time
- 2014-06-05T21:27:25-03:00
Modified lib/vcsinfo.sh
# yellow => index modified (has precedence over red)
# red => worktree modified
local state="${GREEN}"
- if [[ ${git_status} =~ $'\n'?(M|D) ]]; then
+ if [[ ${git_status} =~ $'\n'?(M|D|\?) ]]; then
state="${RED}"
is_dirty=1
fi