From f7636f7f2343d6ac134b35b447e57fa2a38feba1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 27 May 2019 18:45:44 +0000 Subject: searchidx: fix obvious typo We can't pass an empty string to `git merge-base --is-ancestor' AFAIK, this did NOT present issues in the current test suite. --- lib/PublicInbox/SearchIdx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index 9c291066..b963805e 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -694,7 +694,7 @@ sub _last_x_commit { $lx = $lm; } # Use last_commit from msgmap if it is older or unset - if (!$lm || ($lx && $lx && is_ancestor($self->{git}, $lm, $lx))) { + if (!$lm || ($lx && $lm && is_ancestor($self->{git}, $lm, $lx))) { $lx = $lm; } $lx; -- cgit v1.2.3-24-ge0c7