From 47b59a589e5ba9ef44a618acebe8ba5564825ab7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 25 Dec 2015 10:53:15 +0000 Subject: extmsg: fixup comparison for unknown message types Fixes commit 4c2c2325d2948ec5340e2fcafbee798cf568f5fd ("rename 'GitCatFile' package to 'Git'") --- lib/PublicInbox/ExtMsg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-24-ge0c7