Skip to content

Commit 1120f97

Browse files
committed
Merge pull request ohmyzsh#958 from cruser42/master
URGENT: Fix for bug introduced in pull request 925
2 parents 631e3d8 + 5a5c93b commit 1120f97

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/git.zsh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ git_prompt_status() {
6969
echo $STATUS
7070
}
7171

72-
#this is unlikely to change so make it all statically assigned
73-
POST_1_7_2_GIT=$(git_compare_version "1.7.2")
74-
#clean up the namespace slightly by removing the checker function
75-
unset -f git_compare_version()
76-
7772
#compare the provided version of git to the version installed and on path
7873
#prints 1 if input version <= installed version
7974
#prints -1 otherwise
@@ -93,4 +88,9 @@ function git_compare_version() {
9388
echo 1
9489
}
9590

91+
#this is unlikely to change so make it all statically assigned
92+
POST_1_7_2_GIT=$(git_compare_version "1.7.2")
93+
#clean up the namespace slightly by removing the checker function
94+
unset -f git_compare_version
95+
9696

0 commit comments

Comments
 (0)