]> 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>
Sun, 1 Mar 2020 22:55:43 +0000 (16:55 -0600)
commitc9227455fdbd6605c04075aa2ae0faad9aacbc62
tree5044885d1f56b8f9403e22c7862c5c4a8addd55f
parentb84c4d3a7205b2e5cf1d5c72b7adea627683ea9a
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>
Tested-by: Rob Browning <rlb@defaultvalue.org>
Documentation/bup.md
lib/bup/git.py
lib/bup/t/tgit.py