1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-09-24 17:00:47 +00:00

fixed introduced to parse_git_dirty

This commit is contained in:
Aleksey Orekhov 2012-02-08 15:30:58 -05:00
parent 7ea758834b
commit a9f6aed307

View file

@ -8,7 +8,7 @@ function git_prompt_info() {
# Checks if working tree is dirty
parse_git_dirty() {
local SUBMODULE_SYNTAX=''
if [[ POST_1_7_2_GIT -gt 0 ]]; then
if [[ $POST_1_7_2_GIT -gt 0 ]]; then
SUBMODULE_SYNTAX="--ignore-submodules=dirty"
fi
if [[ -n $(git status -s ${SUBMODULE_SYNTAX} 2> /dev/null) ]]; then