about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepoGitPatch.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/RepoGitPatch.pm')
-rw-r--r--lib/PublicInbox/RepoGitPatch.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/RepoGitPatch.pm b/lib/PublicInbox/RepoGitPatch.pm
index e1431f39..3e4eabe9 100644
--- a/lib/PublicInbox/RepoGitPatch.pm
+++ b/lib/PublicInbox/RepoGitPatch.pm
@@ -15,9 +15,10 @@ my $sig = '--signature=git '.join(' ', @CMD);
 
 sub call_git_patch {
         my ($self, $req) = @_;
-        my $git = $req->{-repo}->{git};
+        my $repo = $req->{-repo};
+        my $git = $repo->{git};
         my $env = $req->{env};
-        my $tip = $req->{-tip};
+        my $tip = $repo->tip;
         $tip =~ /\A[\w-]+([~\^][~\^\d])*\z/;
 
         # limit scope, don't take extra args to avoid wasting server