{"thread":{"id":"23271","subject":"Fatal error writing file of mode 120000 when rebasing","startedAt":"2010-03-31T14:43:38Z","lastAt":"2010-03-31T14:43:38Z","messageCount":1,"participants":["Oliver Hookins"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"138290","messageId":"20100331144338.GE2794@spacemoose.devbln.europe.nokia.com","threadId":"23271","inReplyTo":null,"subject":"Fatal error writing file of mode 120000 when rebasing","fromName":"Oliver Hookins","fromEmail":"oliver.hookins@nokia.com","sentAt":"2010-03-31T14:43:38Z","receivedAt":"2010-03-31T14:43:38Z","isPatch":false,"sender":{"key":"oliver.hookins@nokia.com","avatar":null},"body":"Hi,\n\nI'm trying to migrate a git repository to svn (reasons for which are not\nrelevant to the problem at hand) using the instructions I've seen posted in\nvarious places but specifically here:\nhttp://code.google.com/p/support/wiki/ImportingFromGit\n\nAll is well until the step 3 where I am directed to perform\n\"git rebase master tmp\". The first few patches seem to be applied ok but it\nfails with the following error:\n\nfatal: unable to write file foo/bar/baz mode 120000\nPatch failed at 0003 remove some files\n\nWhat appears to be happening in this patch is that a directory is deleted and\nthen a symlink was put in its place. In the reapply patch it seems that the\nsymlink creation is first and the deletions come afterwards so I am guessing the\nfatal error refers to attempting and failing to create this symlink with the\noriginal directory still in place.\n\nI can't seem to find any other mentions of this problem occurring for others on\nthe interwebs, perhaps someone on this list can shed some light on why this\ncould be happening (and a possible solution which isn't too painful).\n"}]}