Commit 6ddb4bd3 authored by Eli Zaretskii's avatar Eli Zaretskii

Fix 'vc-git--program-version'

* lisp/vc/vc-git.el (vc-git--program-version): Fix the function to
work with Git for Windows.
parent 63c93f7e
......@@ -239,8 +239,11 @@ Should be consistent with the Git config value i18n.logOutputEncoding."
(vc-git--run-command-string nil "version")))
(setq vc-git--program-version
(if (and version-string
(string-match "git version \\([0-9.]+\\)$"
;; Git for Windows appends ".windows.N" to the
;; numerical version reported by Git.
"git version \\([0-9.]+\\)\\(\.windows.[0-9]+\\)$"
(match-string 1 version-string)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment