X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FWwwCoderepo.pm;h=f9c150c0604a6f6c1b8146b503c9715b5b16c85a;hb=16f317f32bd5306d852b7d079b20cd0e4f2b4ff9;hp=668b639881a06a9be1a9fcb253e0dc1a03944496;hpb=1c5e51b931fb2a00df28dd5e81d1766b63e389b3;p=public-inbox.git diff --git a/lib/PublicInbox/WwwCoderepo.pm b/lib/PublicInbox/WwwCoderepo.pm index 668b6398..f9c150c0 100644 --- a/lib/PublicInbox/WwwCoderepo.pm +++ b/lib/PublicInbox/WwwCoderepo.pm @@ -223,9 +223,9 @@ sub srv { # endpoint called by PublicInbox::WWW } $path_info =~ m!\A/(.+?)/\z! and ($ctx->{git} = $cr->{$1}) and return summary($self, $ctx); - $path_info =~ m!\A/(.+?)/([a-f0-9]+)/s/\z! and + $path_info =~ m!\A/(.+?)/([a-f0-9]+)/s/([^/]+)?\z! and ($ctx->{git} = $cr->{$1}) and - return PublicInbox::ViewVCS::show($ctx, $2); + return PublicInbox::ViewVCS::show($ctx, $2, $3); if ($path_info =~ m!\A/(.+?)/tree/(.*)\z! and ($ctx->{git} = $cr->{$1})) {