]> gitweb.ps.run Git - ps-cgit/commit
t0001: validate Git -rcN version numbers correctly
authorJohn Keeping <john@keeping.me.uk>
Sat, 27 Apr 2013 09:48:56 +0000 (10:48 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sat, 27 Apr 2013 15:21:22 +0000 (17:21 +0200)
commit8d07ad3388429b6c1361074cbac5dec6afee79d7
tree46d1c4c7b8fe975aa5afe54151a652f1093e23d3
parent83115075abe970306a79484dbaa9adfa97fef2d0
t0001: validate Git -rcN version numbers correctly

When creating the GIT-VERSION-FILE that we use to test that the version
of Git in git/ is the same as in the CGit Makefile, Git applies the
transform "s/-/./g" to the version string.  This doesn't affect released
versions but does change RC version numbers such as 1.8.3-rc0.

While CGit should only refer to a released Git version in general, it is
useful to developers who want to test upcoming Git releases if the tests
do work with RCs, so change t0001 to apply the same transform to our
Makefile version before comparing it to the contents of
GIT-VERSION-FILE.

Signed-off-by: John Keeping <john@keeping.me.uk>
tests/t0001-validate-git-versions.sh