]> arthur.barton.de Git - bup.git/commit
git: overhaul git version checking
authorRob Browning <rlb@defaultvalue.org>
Tue, 11 Feb 2020 02:47:13 +0000 (20:47 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sat, 25 Apr 2020 19:14:28 +0000 (14:14 -0500)
commit2e5baf1274267a06cd59be3ef8373b5d297d3291
tree14c4f8d7ba46a5696b8e74bd24a0090ca24c1f51
parent19a85b03eaabc12b9284aa805a27984e9a26b99f
git: overhaul git version checking

Rework the git version tetsting to handle versions like "1.5.2-rc3"
or (apparently) "1.5.2-rc3 (something ...)".  Add tests for parsing of
all the version types in the current git tag history that we need to
support.

Support and document BUP_ASSUME_GIT_VERSION_IS_FINE=1 as an escape
hatch in case the parsing isn't sufficiently comprehensive, or
upstreeam changes their practices in future releases.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
(cherry picked from commit c9227455fdbd6605c04075aa2ae0faad9aacbc62)
Tested-by: Rob Browning <rlb@defaultvalue.org>
Documentation/bup.md
lib/bup/git.py
lib/bup/t/tgit.py