summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2018-09-08 21:35:03 +0200
committerGitHub <noreply@github.com>2018-09-08 21:35:03 +0200
commitf75d096c1a3863b84cb9788d0934babe4cd3c577 (patch)
treea23c304050bfcc5be82f0d4fd7932522da230b97 /lib
parentbb908495deae22314c3355235133063087698796 (diff)
downloadzsh-f75d096c1a3863b84cb9788d0934babe4cd3c577.tar.gz
zsh-f75d096c1a3863b84cb9788d0934babe4cd3c577.tar.bz2
zsh-f75d096c1a3863b84cb9788d0934babe4cd3c577.zip
lib: small change to git_compare_version
Fixes #7118
Diffstat (limited to 'lib')
-rw-r--r--lib/git.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git.zsh b/lib/git.zsh
index b55b762d7..b92373153 100644
--- a/lib/git.zsh
+++ b/lib/git.zsh
@@ -185,7 +185,7 @@ function git_prompt_status() {
# Outputs -1, 0, or 1 if the installed version is less than, equal to, or
# greater than the input version, respectively.
function git_compare_version() {
- local INPUT_GIT_VERSION INSTALLED_GIT_VERSION
+ local INPUT_GIT_VERSION INSTALLED_GIT_VERSION i
INPUT_GIT_VERSION=(${(s/./)1})
INSTALLED_GIT_VERSION=($(command git --version 2>/dev/null))
INSTALLED_GIT_VERSION=(${(s/./)INSTALLED_GIT_VERSION[3]})