diff options
author | Eric Wong <e@80x24.org> | 2017-02-22 03:01:24 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-02-22 03:01:24 +0000 |
commit | 6158b3e3476cd49a2e6c32fad88a7905ec88de8f (patch) | |
tree | 04eaf4f795bb393167cb8c32d37963c3e1e5c4b4 /lib/PublicInbox/RepoGitRaw.pm | |
parent | a49c12485985cce469c8b653ff7b76c85343b08d (diff) | |
download | public-inbox-6158b3e3476cd49a2e6c32fad88a7905ec88de8f.tar.gz |
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")
Diffstat (limited to 'lib/PublicInbox/RepoGitRaw.pm')
-rw-r--r-- | lib/PublicInbox/RepoGitRaw.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/RepoGitRaw.pm b/lib/PublicInbox/RepoGitRaw.pm index a38d7deb..f02439ad 100644 --- a/lib/PublicInbox/RepoGitRaw.pm +++ b/lib/PublicInbox/RepoGitRaw.pm @@ -12,7 +12,8 @@ sub call_git_raw { my ($self, $req) = @_; my $repo = $req->{-repo}; my $git = $repo->{git}; - my $id = $repo->tip . ':' . $req->{expath}; + my $tip = $req->{tip} || $repo->tip; + my $id = $tip . ':' . $req->{expath}; my ($cat, $hex, $type, $size) = $git->cat_file_begin($id); return unless defined $cat; |