On Thu, 1 Nov 2007, Julian Phillips wrote: > I have been trying to import a repository using fast-import, and as part of > this I have extended fast-import to support copying a path from any arbitrary > commit. This works fine on my small test repository. > > However, when I run against my (vastly more complicated) real work repository > things don't go so well. I get a few thousand commits in, and then it breaks. > It appears that I have somehow managed to create a corrupt object or > something. > > After a certain commit, and attempt to use that commit generates a "fatal: > unable to apply delta". This appears to be coming from unpack_delta_entry > in sha1_file.c. I suppose you mean "fatal: failed to apply delta", because "unable to apply delta" doesn't appear anywhere in the current source tree. > Can anyone give me any hints as to how I find out what is causing the > problem? I'm not even sure what it is that isn't working ... and all > attempts to replicate the problem with my test repository have failed. Well, something is screwed for sure. Some object you're requesting is made of a delta, and that delta is bad, therefore patch_delta() returns NULL (you could instrument it to determine exactly why). Maybe fast-import hasn't flushed the needed data to the pack yet? Nicolas - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html