diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2019-06-09 04:31:05 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-09 04:32:31 +0000 |
commit | 0886c264b24b8bc7626e5a7eb59598b0229f066d (patch) | |
tree | 0091b2a341c4ff824cb564687c2533f8980b5a86 /t/psgi_v2.t | |
parent | 279a47f3f64fc7a414247922b870e58a0b334b0f (diff) | |
download | public-inbox-0886c264b24b8bc7626e5a7eb59598b0229f066d.tar.gz |
And use it in manifest.js. To ease maintaining mirrors with grokmirror(1), we can accept a "git/" directory prefix before the epoch, and ".git" suffix after the epoch number. We maintain compatibility with "$INBOX/$EPOCH" cloning, of course, and it's still easier-to-type on the command-line.
Diffstat (limited to 't/psgi_v2.t')
-rw-r--r-- | t/psgi_v2.t | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/psgi_v2.t b/t/psgi_v2.t index 98112494..5c358cde 100644 --- a/t/psgi_v2.t +++ b/t/psgi_v2.t @@ -202,6 +202,8 @@ test_psgi(sub { $www->call(@_) }, sub { $res = $cb->(GET('/v2test/0/info/refs')); is($res->code, 200, 'got info refs for dumb clones'); + $res = $cb->(GET('/v2test/0.git/info/refs')); + is($res->code, 200, 'got info refs for dumb clones w/ .git suffix'); $res = $cb->(GET('/v2test/info/refs')); is($res->code, 404, 'unpartitioned git URL fails'); |