all repos — cgit @ 27a6d69ab38825602bdbd5a5d0161e465326ea8d

a hyperfast web frontend for git written in c

tests: successfully validate rc versions

For testing versions the version string differs for git tag (v2.22.0-rc3)
and tarball file name (2.22.0.rc3). Let's fix validation for testing
versions.

Signed-off-by: Christian Hesse <mail@eworm.de>
Christian Hesse mail@eworm.de
Tue, 04 Jun 2019 13:49:36 +0200
commit

27a6d69ab38825602bdbd5a5d0161e465326ea8d

parent

985fba80d06f37fdba5e72d738ce21ab5ab5a76d

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M tests/t0001-validate-git-versions.shtests/t0001-validate-git-versions.sh

@@ -33,7 +33,7 @@ sm_sha1=$(git ls-files --stage -- git |

sed -e "s/^[0-9]* \\([0-9a-f]*\\) [0-9] .*$/\\1/") && cd git && git describe --match "v[0-9]*" $sm_sha1 - ) | sed -e "s/^v//" >sm_version && + ) | sed -e "s/^v//" -e "s/-/./" >sm_version && test_cmp sm_version makefile_version fi '