From 48239aeb97b64785d87b8747ff1b13849b2ca7f4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 25 Aug 2021 14:22:47 -0400 Subject: [PATCH] fix(cli): git version check on Windows Of course Git on Windows produces '2.33.0.windows.2'. Why wouldn't it? --- core/cli/doctor.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/cli/doctor.el b/core/cli/doctor.el index 3211c66b0..35a7aa143 100644 --- a/core/cli/doctor.el +++ b/core/cli/doctor.el @@ -66,8 +66,8 @@ in." (let* ((version (cdr (doom-call-process "git" "version"))) (version - (and (string-match "\\_<[0-9]+\\.[0-9]+\\(\\.[0-9]+\\)\\_>" version) - (match-string 0 version)))) + (and (string-match "git version \\([0-9]+\\(?:\\.[0-9]+\\)\\{2\\}\\)" version) + (match-string 1 version)))) (if version (when (version< version "2.23") (error! "Git %s detected! Doom requires git 2.23 or newer!"