about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-03-28 09:01:17 +0000
committerEric Wong <e@80x24.org>2021-03-28 23:01:37 +0000
commitc9095090b9056892266621839ad3f456606b882e (patch)
tree2bc085ab0567491ba3115feee5f5dceb8705abd6
parent73e17de5421d83bedbf84209585cf2408b9af1ce (diff)
downloadpublic-inbox-c9095090b9056892266621839ad3f456606b882e.tar.gz
This avoids triggering a "BUG:" message in the solver code.
-rw-r--r--lib/PublicInbox/LeiBlob.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/LeiBlob.pm b/lib/PublicInbox/LeiBlob.pm
index 4bd86253..f44d8af1 100644
--- a/lib/PublicInbox/LeiBlob.pm
+++ b/lib/PublicInbox/LeiBlob.pm
@@ -103,6 +103,7 @@ sub lei_blob {
                 my $cgd = get_git_dir('.');
                 unshift(@$git_dirs, $cgd) if defined $cgd;
         }
+        return $lei->fail('no --git-dir to try') unless @$git_dirs;
         my $lxs = $lei->lxs_prepare or return;
         require PublicInbox::SolverGit;
         my $self = bless { lxs => $lxs, oid_b => $blob }, __PACKAGE__;