diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-09-17 08:35:09 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-09-17 11:23:18 +0900 |
| commit | 885860d233954facf47b279f47823aeabbd14c4a (patch) | |
| tree | 2a45272937694250aa2332703faffba8b0d31a84 | |
| parent | 13a57c9c35866f25b0b12fbe4c4df475711b09eb (diff) | |
Fix git version comparison
| -rw-r--r-- | win32/Makefile.sub | 3 |
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 |
