diff options
Diffstat (limited to 'lib/PublicInbox/RepoGitSnapshot.pm')
-rw-r--r-- | lib/PublicInbox/RepoGitSnapshot.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/PublicInbox/RepoGitSnapshot.pm b/lib/PublicInbox/RepoGitSnapshot.pm index e05ad80c..9ba4c04a 100644 --- a/lib/PublicInbox/RepoGitSnapshot.pm +++ b/lib/PublicInbox/RepoGitSnapshot.pm @@ -36,9 +36,7 @@ our %FMT_TYPES = ( sub call_git_snapshot ($$) { # invoked by PublicInbox::RepoBase::call my ($self, $req) = @_; - my @extra = @{$req->{extra}}; - my $ref = shift @extra; - return $self->r(404) if (!defined $ref) || scalar(@extra); + my $ref = $req->{-tip}; my $orig_fn = $ref; # just in case git changes refname rules, don't allow wonky filenames |