about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepobrowseGitBlob.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/RepobrowseGitBlob.pm')
-rw-r--r--lib/PublicInbox/RepobrowseGitBlob.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/PublicInbox/RepobrowseGitBlob.pm b/lib/PublicInbox/RepobrowseGitBlob.pm
index d38101ed..a11c457c 100644
--- a/lib/PublicInbox/RepobrowseGitBlob.pm
+++ b/lib/PublicInbox/RepobrowseGitBlob.pm
@@ -15,10 +15,8 @@ sub call_git_blob {
         my $q = PublicInbox::RepobrowseGitQuery->new($req->{env});
         my $id = $q->{id};
         $id eq '' and $id = 'HEAD';
+        $id .= ":$req->{expath}";
 
-        if (length(my $expath = $req->{expath})) {
-                $id .= ":$expath";
-        }
         my ($cat, $hex, $type, $size) = $git->cat_file_begin($id);
         return unless defined $cat;