From 0b336e8330792b70a2dcaf4a53b8d8f35c26cd25 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 13 May 2013 11:09:46 +0800 Subject: [PATCH] fix git_compare_version --- lib/git.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/git.zsh b/lib/git.zsh index d0cec0e66..699fafb19 100755 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -128,6 +128,9 @@ function git_compare_version() { if [[ $INSTALLED_GIT_VERSION[$i] -lt $INPUT_GIT_VERSION[$i] ]]; then echo -1 return 0 + else + echo 1 + return 0 fi done echo 1