Skip to contentSkip to conversation

please stop using git.git "next" for now

WARNING Junio C Hamano 1 participant 3 messages May 3, 2006 – Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
Quoted 11 lines · Junio C Hamano

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.

#2 lore raw
Quoted 7 lines · Junio C Hamano
Quoted 3 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.