summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win32/Makefile.sub3
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 21bd57e760..81a33277af 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -525,7 +525,8 @@ HAVE_GIT = no
!if "$(HAVE_GIT)" == "no"
!else if [for /f "tokens=3" %I in ('git --version') do @(\
for /f "delims=. tokens=1-2" %I in ("%I") do @(\
- if %I lss 2 (exit 1) else if %J lss 10 (exit 1) else (exit 0)\
+ if %I lss 2 (exit 1) else if %I gtr 2 (exit 0) \
+ else if %J lss 10 (exit 1) else (exit 0)\
)\
)]
HAVE_GIT = no