From: Eric Wong Date: Mon, 27 May 2019 18:45:44 +0000 (+0000) Subject: searchidx: fix obvious typo X-Git-Tag: v1.2.0~217 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f7636f7f2343d6ac134b35b447e57fa2a38feba1;p=public-inbox.git 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. --- 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;