浏览代码

Fixed bug introduced when fixing issue 896

cruser42 12 年之前
父节点
当前提交
5a5c93b334
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      lib/git.zsh

+ 5 - 5
lib/git.zsh

@@ -69,11 +69,6 @@ git_prompt_status() {
   echo $STATUS
 }
 
-#this is unlikely to change so make it all statically assigned
-POST_1_7_2_GIT=$(git_compare_version "1.7.2")
-#clean up the namespace slightly by removing the checker function
-unset -f git_compare_version()
-
 #compare the provided version of git to the version installed and on path
 #prints 1 if input version <= installed version
 #prints -1 otherwise 
@@ -93,4 +88,9 @@ function git_compare_version() {
   echo 1
 }
 
+#this is unlikely to change so make it all statically assigned
+POST_1_7_2_GIT=$(git_compare_version "1.7.2")
+#clean up the namespace slightly by removing the checker function
+unset -f git_compare_version
+