From ef625adb0733d88fc406eeb60b45389754a0c3cf Mon Sep 17 00:00:00 2001 From: Alex Light Date: Thu, 26 Jan 2012 18:15:51 -0500 Subject: [PATCH] made the lib/git.zsh file check the version of git that is being used and ajust the arguments for the git status call accordingly --- lib/git.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/git.zsh b/lib/git.zsh index 7b4bc1224..a68a6e4d6 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -17,7 +17,11 @@ parse_git_dirty() { # echos false otherwise is_legacy_git() { checkit() { - if [ $1 -gt 1 -o $2 -gt 7 -o $3 -ge 2 ]; then + if [ $1 -gt 1 ]; then + echo false + elif [ $1 -eq 1 -a $2 -gt 7 ]; then + echo false + elif [ $1 -eq 1 -a $2 -eq 7 -a $3 -ge 2 ]; then echo false else echo true