From: Jonathan Nieder Date: Thu, 24 Nov 2011 23:09:17 GMT Subject: Re: Incremental use of fast-import may cause conflicting notes Message-ID: <20111124230917.GC27586@elie.hsd1.il.comcast.net> In-Reply-To: Hi Henrik, Henrik Grubbström wrote: > Background: I have an incremental repository-walker creating a corresponding > documentation repository from a source repository > that uses git-notes to store its state, a use for which notes > seem very suitable. Nice. [...] > when fast-import is restarted > it won't remember the fanout, and will start writing files in the root > again. This means that there may be multiple notes-files for the same > commit, eg both de/adbeef and deadbeef. [...] > The problem is probably due to b->num_notes not being initialized properly > when the old non-empty root commit for the notes branch is loaded in > parse_from()/parse_new_commit(). Sounds like a bug. Can you suggest a reproduction recipe (ideally as a patch to t/t9301-fast-import-notes.sh), a fix, or both? Thanks. Regards, Jonathan