about summary refs log tree commit homepage
path: root/lib/PublicInbox/ExtMsg.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-12-25 10:53:15 +0000
committerEric Wong <e@80x24.org>2015-12-25 10:53:15 +0000
commit47b59a589e5ba9ef44a618acebe8ba5564825ab7 (patch)
tree541062ae45b65080cd82d871b96852c2306920f2 /lib/PublicInbox/ExtMsg.pm
parentbc067a7562a586bed92401fe1084bbe423b9451a (diff)
downloadpublic-inbox-47b59a589e5ba9ef44a618acebe8ba5564825ab7.tar.gz
Fixes commit 4c2c2325d2948ec5340e2fcafbee798cf568f5fd
("rename 'GitCatFile' package to 'Git'")
Diffstat (limited to 'lib/PublicInbox/ExtMsg.pm')
-rw-r--r--lib/PublicInbox/ExtMsg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/ExtMsg.pm b/lib/PublicInbox/ExtMsg.pm
index 0b667545..59bbae59 100644
--- a/lib/PublicInbox/ExtMsg.pm
+++ b/lib/PublicInbox/ExtMsg.pm
@@ -75,7 +75,7 @@ sub ext_msg {
                 # TODO: reuse existing PublicInbox::Git objects to save forks
                 my $git = PublicInbox::Git->new($n->{git_dir});
                 my (undef, $type, undef) = $git->check($path);
-                return r302($n->{url}, $mid) if ($type eq 'blob');
+                return r302($n->{url}, $mid) if ($type && $type eq 'blob');
         }
 
         # fall back to partial MID matching