about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-03-02 23:39:49 +0000
committerEric Wong <e@80x24.org>2017-03-02 23:39:49 +0000
commit16b1fbe36cc39a351ef9810b9018d36df833a941 (patch)
tree6a354e1ab5177993fb11bd5ae0e43400d66ffbce /t
parenta4df292ed39f6e02a7d57326f291583339cb562d (diff)
downloadpublic-inbox-16b1fbe36cc39a351ef9810b9018d36df833a941.tar.gz
This is shorter, and makes more sense as the endpoint
displays both tree listings and actual blob sources.
This will also make rewriting existing URLs from cgit
installations easier.
Diffstat (limited to 't')
-rw-r--r--t/repobrowse_git_src.t (renamed from t/repobrowse_git_tree.t)4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/repobrowse_git_tree.t b/t/repobrowse_git_src.t
index d91cfdc9..4d16eac4 100644
--- a/t/repobrowse_git_tree.t
+++ b/t/repobrowse_git_src.t
@@ -7,7 +7,7 @@ my $test = require './t/repobrowse_common_git.perl';
 test_psgi($test->{app}, sub {
         my ($cb) = @_;
 
-        my $req = 'http://example.com/test.git/tree/HEAD/dir';
+        my $req = 'http://example.com/test.git/src/HEAD/dir';
         my $res = $cb->(GET($req));
         is(200, $res->code, 'got 200 response from dir');
         my $noslash_body = dechunk($res);
@@ -19,7 +19,7 @@ test_psgi($test->{app}, sub {
         is(301, $r2->code, 'got 301 response from dir with slash');
         is($req, $r2->header('Location'), 'redirected w/o slash');
 
-        $req = 'http://example.com/test.git/tree/master/foo.txt';
+        $req = 'http://example.com/test.git/src/master/foo.txt';
         my $blob = $cb->(GET($req));
         is($blob->header('Content-Type'), 'text/html; charset=UTF-8',
                 'got text/html blob');