aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2024-01-20 10:10:06 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2024-01-20 10:16:59 -0800
commit22d8557152b81ec78f36e3ae71084541451158ac (patch)
tree7984c4e40818dc5e0f8d7c1bfdb9ca47a69068ce
parentfix: ensure keydir exists before loading metadata (diff)
downloadgitolite-gentoo-22d8557152b81ec78f36e3ae71084541451158ac.tar.gz
gitolite-gentoo-22d8557152b81ec78f36e3ae71084541451158ac.tar.bz2
gitolite-gentoo-22d8557152b81ec78f36e3ae71084541451158ac.zip
test: accept gentoo version tag
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xinstall2
-rwxr-xr-xt/info-json.t2
2 files changed, 2 insertions, 2 deletions
diff --git a/install b/install
index fa6fc26..3d3c218 100755
--- a/install
+++ b/install
@@ -74,7 +74,7 @@ for my $d ($ln, $to) {
chdir($ENV{GL_BINDIR});
my $version = `git describe --tags --long --dirty=-dt 2>/dev/null`;
-unless ($version =~ /^v\d/) {
+unless ($version =~ /^v\d|^gitolite-gentoo/) {
print STDERR "git describe failed; cannot deduce version number\n";
$version = "(unknown)";
}
diff --git a/t/info-json.t b/t/info-json.t
index 74fbdf4..0b1ce89 100755
--- a/t/info-json.t
+++ b/t/info-json.t
@@ -169,7 +169,7 @@ sub test_gs {
my $glu = shift;
my $res = ( $href->{GL_USER} eq $glu ? 1 : 'undef' );
try 'perl $_ = "' . $res . '"; /1/';
- $res = ( $href->{gitolite_version} =~ /^v3.[5-9]/ ? 1 : 'undef' );
+ $res = ( $href->{gitolite_version} =~ /^v3.[5-9]|^gitolite-gentoo-3.[5-9]/ ? 1 : 'undef' );
try 'perl $_ = "' . $res . '"; /1/';
$res = ( $href->{git_version} =~ /^1.[6-9]|^2./ ? 1 : 'undef' );
try 'perl $_ = "' . $res . '"; /1/';