Re: [PATCH 0/4] un-breaking pack-objects with bitmaps
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Sep 8, 2018, 06:43 UTC
- Message-ID
- <87d0toqyj6.fsf@evledraar.gmail.com>
- In-Reply-To
- <20180901074145.GA24023@sigill.intra.peff.net>
On Sat, Sep 01 2018, Jeff King wrote:
Show 28 quoted lines
> On Fri, Aug 31, 2018 at 06:55:58PM -0400, Jeff King wrote:
>
>> On Fri, Aug 31, 2018 at 05:23:17PM +0200, Ævar Arnfjörð Bjarmason wrote:
>>
>> > On Tue, Aug 21 2018, Jeff King wrote:
>> >
>> > > +int bitmap_has_sha1_in_uninteresting(struct bitmap_index *bitmap_git,
>> > > + const unsigned char *sha1)
>> > > +{
>> > > + int pos;
>> > > +
>> > > + if (!bitmap_git)
>> > > + return 0; /* no bitmap loaded */
>> > > + if (!bitmap_git->result)
>> > > + BUG("failed to perform bitmap walk before querying");
>> >
>> > Some part of what calls this completely breaks pushing from the "next"
>> > branch when you have local bitmaps (we *really* should have some tests
>> > for this...).
>>
>> Yikes, thanks for reporting. I agree we need better tests here.
>
> OK, here is the fix. Since the problem is in 'next', this is done as a
> patch on top of jk/pack-delta-reuse-with-bitmap. But since we're set to
> rewind 'next' post-release anyway, we could squash it directly into
> 30cdc33fba from the original series. That would help later bisections
> from running into it, which may be worth it as it's a pretty severe
> breakage. Or maybe not:Junio: Just a reminder that next is still broken with this, and I see e.g. the Debian "experimental" has the bug but not the fix at this point.
I'm just reverting jk/pack-delta-reuse-with-bitmap out of next when building my own package of git, but I think this really should be fixed in that branch, either by merging the fix down or reverting the original series out of next, I think just merging the fix down makes sense, but have no strong opinion on it.