require_git_version: allow multiple digits in version
commit98483c68e50e0ba4824cf42658ccb27299e79275
authorRamsay Jones <ramsay@ramsayjones.plus.com>
Wed, 28 Sep 2016 15:01:39 +0000 (28 16:01 +0100)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Tue, 18 Oct 2016 03:27:14 +0000 (17 23:27 -0400)
tree5b338b0adfa0b44e63f2459573aff763f1946e47
parentfd22dbbbdbabe5229d1415edd75c20ab9151ed72
require_git_version: allow multiple digits in version

The version check code, in require_git_version(), currently asserts that
git v2.10.0 is less than v2.5.0, since it sees the minor version as the
single digit 1, rather than the number 10. This leads to the worktree
tests being incorrectly skipped. In order to fix the version check, the
regular expressions used to isolate the major/minor version numbers are
modified to allow multiple digits.

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Jonas Fonseca <jonas.fonseca@gmail.com>
test/tools/libtest.sh