summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Minor <tminor@tminor-dt.nvidia.com>2013-01-22 09:02:21 -0800
committerThomas Minor <tminor@tminor-dt.nvidia.com>2013-02-19 10:00:58 -0800
commit3db22634a1dfe6797b2dafabce82b27f101c8e6b (patch)
treece1e62a54febf7d60251991e2d209c56ae4e3c2b
parentfce68bbba0be99cfd49f9e46572b2d12d0a86d45 (diff)
downloadzsh-3db22634a1dfe6797b2dafabce82b27f101c8e6b.tar.gz
zsh-3db22634a1dfe6797b2dafabce82b27f101c8e6b.tar.bz2
zsh-3db22634a1dfe6797b2dafabce82b27f101c8e6b.zip
pipe git version check error to /dev/null (for when git doesn't exist)
-rw-r--r--lib/git.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git.zsh b/lib/git.zsh
index 3e14695bd..bcd6cc055 100644
--- a/lib/git.zsh
+++ b/lib/git.zsh
@@ -112,7 +112,7 @@ function git_compare_version() {
local INPUT_GIT_VERSION=$1;
local INSTALLED_GIT_VERSION
INPUT_GIT_VERSION=(${(s/./)INPUT_GIT_VERSION});
- INSTALLED_GIT_VERSION=($(git --version));
+ INSTALLED_GIT_VERSION=($(git --version 2>/dev/null));
INSTALLED_GIT_VERSION=(${(s/./)INSTALLED_GIT_VERSION[3]});
for i in {1..3}; do