]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix regexp typo in vc-git--program-version
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Mar 2019 18:38:36 +0000 (11:38 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Mar 2019 18:38:59 +0000 (11:38 -0700)
* lisp/vc/vc-git.el (vc-git--program-version):
Require a period after ".windows", instead of allowing any char.

lisp/vc/vc-git.el

index c990b0659d2ed6d5eef7a15575d991d827861467..6b8ed7e2c123c5118af6666d7c71d2fd3c805590 100644 (file)
@@ -253,7 +253,7 @@ The following place holders should be present in the string:
                        ;; Git for Windows appends ".windows.N" to the
                        ;; numerical version reported by Git.
                        (string-match
-                        "git version \\([0-9.]+\\)\\(\\.windows.[0-9]+\\)?$"
+                        "git version \\([0-9.]+\\)\\(\\.windows\\.[0-9]+\\)?$"
                         version-string))
                   (match-string 1 version-string)
                 "0")))))