]> git.eshelyaron.com Git - emacs.git/commit
vc-git--program-version to support Git for macOS version string
authorJustin Schell <justinmschell@gmail.com>
Mon, 6 Dec 2021 01:27:52 +0000 (02:27 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 6 Dec 2021 01:27:52 +0000 (02:27 +0100)
commite6a0cfaad5365a129def0b348103233372a8fe49
tree7989b777df8ba8306fe1646cbd7b9e5eacc89122
parent2454f9876d647453d5e0d8e4aa2260f9254978c8
vc-git--program-version to support Git for macOS version string

`git version` on macOS returns e.g., "git version 2.30.1 (Apple
Git-130)" and `vc-git--program-version` currently returns "0" instead
of "2.30.1".

* lisp/vc/vc-git.el (vc-git--program-version): Ignore text after
the version number when parsing git versions (bug#52172).

Copyright-paperwork-exempt: yes
lisp/vc/vc-git.el
test/lisp/vc/vc-git-tests.el [new file with mode: 0644]