From 6158b3e3476cd49a2e6c32fad88a7905ec88de8f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 22 Feb 2017 03:01:24 +0000 Subject: repobrowse: fixup revision handling Revisions passed in the URL must not be ignored. This fixes some bugs introduced in commit f6244586ba4f5a5e7575e1254be8c9bbe303fce9 ("repobrowse: switch to new URL format to avoid query strings") --- lib/PublicInbox/Repobrowse.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/PublicInbox/Repobrowse.pm') diff --git a/lib/PublicInbox/Repobrowse.pm b/lib/PublicInbox/Repobrowse.pm index 94e78b80..aad0e8ba 100644 --- a/lib/PublicInbox/Repobrowse.pm +++ b/lib/PublicInbox/Repobrowse.pm @@ -118,11 +118,11 @@ sub call { my $vcs_lc = $repo->{vcs}; my $vcs = $VCS{$vcs_lc} or return r404(); my $mod; - my $h; + my $tip; if (defined $cmd && length $cmd) { $mod = $CMD{$cmd}; if ($mod) { - $h = shift @extra if @extra; + $tip = shift @extra if @extra; } else { unshift @extra, $cmd; $mod = 'Fallback'; @@ -141,7 +141,7 @@ sub call { while (@extra && $extra[-1] eq '') { pop @extra; } - $req->{h} = $h; + $req->{tip} = $tip; $mod = load_once("PublicInbox::Repo$vcs$mod"); $vcs = load_once("PublicInbox::$vcs"); -- cgit v1.2.3-24-ge0c7