about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepoGitDiff.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-02-22 03:01:24 +0000
committerEric Wong <e@80x24.org>2017-02-22 03:01:24 +0000
commit6158b3e3476cd49a2e6c32fad88a7905ec88de8f (patch)
tree04eaf4f795bb393167cb8c32d37963c3e1e5c4b4 /lib/PublicInbox/RepoGitDiff.pm
parenta49c12485985cce469c8b653ff7b76c85343b08d (diff)
downloadpublic-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/RepoGitDiff.pm')
-rw-r--r--lib/PublicInbox/RepoGitDiff.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/RepoGitDiff.pm b/lib/PublicInbox/RepoGitDiff.pm
index 26728402..643d5cb7 100644
--- a/lib/PublicInbox/RepoGitDiff.pm
+++ b/lib/PublicInbox/RepoGitDiff.pm
@@ -32,9 +32,10 @@ sub git_diff_sed ($$) {
         }
 }
 
+# $REPO/diff/$BEFORE..$AFTER
 sub call_git_diff {
         my ($self, $req) = @_;
-        my ($id, $id2) = split(/\.\./, $req->{h});
+        my ($id, $id2) = split(/\.\./, $req->{tip});
         my $env = $req->{env};
         my $git = $req->{-repo}->{git};
         my $cmd = $git->cmd(qw(diff-tree -z --numstat -p --encoding=UTF-8