{"thread":{"id":"4473","subject":"cvs import error","startedAt":"2006-06-11T23:48:42Z","lastAt":"2006-06-13T04:25:49Z","messageCount":5,"participants":["carbonated beverage","Martin Langhoff"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"21617","messageId":"20060611234842.GA12713@prophet.net-ronin.org","threadId":"4473","inReplyTo":null,"subject":"cvs import error","fromName":"carbonated beverage","fromEmail":"ramune@net-ronin.org","sentAt":"2006-06-11T23:48:42Z","receivedAt":"2006-06-11T23:48:42Z","isPatch":false,"sender":{"key":"ramune@net-ronin.org","avatar":null},"body":"Hi all,\n\nI'm currently trying to import a CVS archive into git and hitting\nproblems.  The repo was cloned with cvssuck, and the import was run\nwith cvsps 2.1 and git-1.4.0, getting this (abbreviated, slightly\nsanitized) output:\n\n$ git cvsimport  -v -d ':local:/home/ramune/git-import'  -C .  FOO\nWARNING: revision 1.21.2.3 of file BAR/BAZ/QUX on unnamed branch\n<<snip lots of the same types of warnings for different files, multiple\n<<times for quite a few of them>>\nWARNING: revision 1.6.2.2 of file BAR/BAZ/FROBOZ on unnamed branch\ninvalid cache revision line 'file:X/Y/Z/A/B/C D E.F; D G.F; pre_rev:INITIAL; pos\nt_rev:1.1; dead:0; branch_point:0\n'|' D G.F'\nDONE; creating master branch\nfatal: refs/heads/origin: not a valid SHA1\nfatal: master: not a valid SHA1\nfatal: ambiguous argument 'HEAD': unknown revision or path not in the working tr\nee.\nUse '--' to separate paths from revisions\nfatal: Not a valid object name HEAD\ncheckout failed: 256\n$ exit\n\nThe import bombs out on the same place every time, with or without cvsps\nbeing passed -x and/or --no-cvs-direct.\n\nThe source tree's proprietary, so I can't give snippets or examples,\nunforutnately.  Has anyone come across this issue before and resovled it?\n\nIf so, how?\n\nThanks,\n\n-- DN\nDaniel\n"},{"id":"21618","messageId":"46a038f90606111731q34fe431fn36d751b387ab69a9@mail.gmail.com","threadId":"4473","inReplyTo":"20060611234842.GA12713@prophet.net-ronin.org","subject":"Re: cvs import error","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2006-06-12T00:31:35Z","receivedAt":"2006-06-12T00:31:35Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"On 6/12/06, carbonated beverage <ramune@net-ronin.org> wrote:\n> fatal: Not a valid object name HEAD\n> checkout failed: 256\n> $ exit\n\nAfter each attempt, the import leaves a .git file around. rm -fr .git\nbefore retrying... or just retry in a new directory every time ;-)\n\n(... we should die with a more helpful message here...)\n\ncheers,\n\n\nmartin\n"},{"id":"21626","messageId":"20060612035737.GA16580@prophet.net-ronin.org","threadId":"4473","inReplyTo":"46a038f90606111731q34fe431fn36d751b387ab69a9@mail.gmail.com","subject":"Re: cvs import error","fromName":"carbonated beverage","fromEmail":"ramune@net-ronin.org","sentAt":"2006-06-12T03:57:37Z","receivedAt":"2006-06-12T03:57:37Z","isPatch":false,"sender":{"key":"ramune@net-ronin.org","avatar":null},"body":"On Mon, Jun 12, 2006 at 12:31:35PM +1200, Martin Langhoff wrote:\n> After each attempt, the import leaves a .git file around. rm -fr .git\n> before retrying... or just retry in a new directory every time ;-)\n> \n> (... we should die with a more helpful message here...)\n\nThis error occurs on a fresh import attempt, unfortunately.\n\nrm -rf'ing .git and doing an import again always fails at the exact same\nspot with the above message.\n\n-- DN\nDaniel\n"},{"id":"21627","messageId":"46a038f90606112101la88168xc5d540fe1220fbf8@mail.gmail.com","threadId":"4473","inReplyTo":"20060612035737.GA16580@prophet.net-ronin.org","subject":"Re: cvs import error","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2006-06-12T04:01:32Z","receivedAt":"2006-06-12T04:01:32Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"On 6/12/06, carbonated beverage <ramune@net-ronin.org> wrote:\n> On Mon, Jun 12, 2006 at 12:31:35PM +1200, Martin Langhoff wrote:\n> > After each attempt, the import leaves a .git file around. rm -fr .git\n> > before retrying... or just retry in a new directory every time ;-)\n> >\n> > (... we should die with a more helpful message here...)\n>\n> This error occurs on a fresh import attempt, unfortunately.\n>\n> rm -rf'ing .git and doing an import again always fails at the exact same\n> spot with the above message.\n\nUnsure then. Try with the patches I've posted yesterday that ignore\nbogus-looking branches.\n\ncheers,\n\n\n\nmartin\n"},{"id":"21703","messageId":"20060613042549.GA8287@prophet.net-ronin.org","threadId":"4473","inReplyTo":"46a038f90606112101la88168xc5d540fe1220fbf8@mail.gmail.com","subject":"Re: cvs import error","fromName":"carbonated beverage","fromEmail":"ramune@net-ronin.org","sentAt":"2006-06-13T04:25:49Z","receivedAt":"2006-06-13T04:25:49Z","isPatch":false,"sender":{"key":"ramune@net-ronin.org","avatar":null},"body":"Whups, make an error on the reply so it didn't hit the list:\n\nSwitched to the git 'next' branch, applied that patch, nuked ~/.cvsps\n(forgot it cached stuff), and rm'ing the one directory that was giving\ncvsps fits (in that order) finally allowed the rest of the repo to get\nimported.\n\nThanks!\n\n-- DN\nDaniel\n"}]}