changed variable PRE_1_7_2_GIT to POST_1_7_2_GIT to make it more accurate
Diff
1diff --git a/lib/git.zsh b/lib/git.zsh
2index c46aa608dc49ca2b0acb7ce53d24e78475dbf122..efaa943ff522c499937b719c205808267aa6596e 100644
3--- a/lib/git.zsh
4+++ b/lib/git.zsh
5@@ -8,7 +8,7 @@ function git_prompt_info() {
6 # Checks if working tree is dirty
7 parse_git_dirty() {
8 local SUBMODULE_SYNTAX=''
9- if [[ PRE_1_7_2_GIT -gt 0 ]]; then
10+ if [[ POST_1_7_2_GIT -gt 0 ]]; then
11 SUBMODULE_SYNTAX="--ignore-submodules=dirty"
12 fi
13 if [[ -n $(git status -s ${SUBMODULE_SYNTAX} 2> /dev/null) ]]; then
14@@ -70,7 +70,7 @@ git_prompt_status() {
15 }
1617 #this is unlikely to change so make it all statically assigned
18-PRE_1_7_2_GIT=$(git_compare_version "1.7.2")
19+POST_1_7_2_GIT=$(git_compare_version "1.7.2")
20 #clean up the namespace slightly by removing the checker function
21 unset -f git_compare_version()
22