threads / discuss / 4045

[WARNING] please stop using git.git "next" for now

Subject: [WARNING] please stop using git.git "next" for now

## tl;dr

3 messages between May 3, 2006 and May 4, 2006.

replies: 2people: 1as markdown or json

Junio C Hamano· May 3, 2006, 21:53 UTC · lore

I just noticed there is a breakage in write-tree optimization that uses the new cache-tree data structure in the "next" branch. Switching branches with "git checkout anotherbranch" when your index exactly matches the current HEAD commit and then immediately doing write-tree produces a nonsense tree, and commits on top of that results in tree objects that have duplicated entries.

I will be working on a fix now, but in the meantime please do not use the "next" branch for real work. Sorry for the breakage.

Junio C Hamano· May 3, 2006, 23:13 UTC · re: Junio C Hamano · lore

Re: [WARNING] please stop using git.git "next" for now

Junio C Hamano <junkio@cox.net> writes:
Show 11 quoted lines
> I just noticed there is a breakage in write-tree optimization
> that uses the new cache-tree data structure in the "next"
> branch.  Switching branches with "git checkout anotherbranch"
> when your index exactly matches the current HEAD commit and then
> immediately doing write-tree produces a nonsense tree, and
> commits on top of that results in tree objects that have
> duplicated entries.
>
> I will be working on a fix now, but in the meantime please do
> not use the "next" branch for real work.  Sorry for the
> breakage.

Two-way merge by read-tree forgot to invalidate the directories a new element was added underneath. The fix is simple and will be in the "next" I'll push out tonight.

Sorry for the noise.
Junio C Hamano· May 4, 2006, 00:46 UTC · re: Junio C Hamano · lore

Re: [WARNING] please stop using git.git "next" for now

Junio C Hamano <junkio@cox.net> writes:
Show 7 quoted lines
>> I will be working on a fix now, but in the meantime please do
>> not use the "next" branch for real work.  Sorry for the
>> breakage.
>
> Two-way merge by read-tree forgot to invalidate the directories
> a new element was added underneath.  The fix is simple and will
> be in the "next" I'll push out tonight.

OK, done. Will be looking into "binary grep segfault" problem next.

← back to recent threads