Fix 'vc-git--program-version'
* lisp/vc/vc-git.el (vc-git--program-version): Fix the function to work with Git for Windows.
This commit is contained in:
parent
63c93f7ecd
commit
6ddb4bd39a
1 changed files with 5 additions and 2 deletions
|
@ -239,8 +239,11 @@ Should be consistent with the Git config value i18n.logOutputEncoding."
|
||||||
(vc-git--run-command-string nil "version")))
|
(vc-git--run-command-string nil "version")))
|
||||||
(setq vc-git--program-version
|
(setq vc-git--program-version
|
||||||
(if (and version-string
|
(if (and version-string
|
||||||
(string-match "git version \\([0-9.]+\\)$"
|
;; Git for Windows appends ".windows.N" to the
|
||||||
version-string))
|
;; numerical version reported by Git.
|
||||||
|
(string-match
|
||||||
|
"git version \\([0-9.]+\\)\\(\.windows.[0-9]+\\)$"
|
||||||
|
version-string))
|
||||||
(match-string 1 version-string)
|
(match-string 1 version-string)
|
||||||
"0")))))
|
"0")))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue