{"thread":{"id":"7183","subject":"git-cvsimport: all my files are marked deleted ?","startedAt":"2007-03-10T18:09:47Z","lastAt":"2007-04-04T20:22:52Z","messageCount":4,"participants":["Xavier Maillard","Raimund Bauer","Frank Lichtenheld"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"36751","messageId":"200703101809.l2AI9lin005409@localhost.localdomain","threadId":"7183","inReplyTo":null,"subject":"git-cvsimport: all my files are marked deleted ?","fromName":"Xavier Maillard","fromEmail":"zedek@gnu.org","sentAt":"2007-03-10T18:09:47Z","receivedAt":"2007-03-10T18:09:47Z","isPatch":false,"sender":{"key":"zedek@gnu.org","avatar":null},"body":"Hi,\n\nI am slowly moving all my projects from several SCM into GIT.\n\nI am at converting all my CVS managed project for instance and I\nmiserably failed at understanding what is happening.\n\nSo I installed CVSps as per requested (it is version from Yann\nDirson's repository).\n\nI prepared a local and clean checkout from my CVS.\n\nThen I ran git-cvsimport like this:\n\n git cvsimport -v -A /tmp/author-conv -a -i -C <directory> <cvs module>\n\nI think it finishes successfully but here are the latest messages:\n\nGenerating pack...\nDone counting 202 objects.\nDeltifying 202 objects.\n 100% (202/202) done\nWriting 202 objects.\n 100% (202/202) done\nTotal 202 (delta 102), reused 0 (delta 0)\nPack pack-8a456d18c811d4a503d1e64183d223407e9d379d created.\nRemoving unused objects 100%...\nDone.\nDONE; creating master branch\n\nThen I went back to <directory> and I just did 'ls'. Directory is\nempty (except the .git directory).\n\ngit status reports this:\n\n# Changed but not updated:\n#   (use \"git add/rm <file>...\" to update what will be committed)\n#\n#       deleted:    AUTHORS\n#\tSKIPPED FILES HERE STILL MARKED AS deleted\n#\nno changes added to commit (use \"git add\" and/or \"git commit -a\")\n\ngit branch, git tag -l /et caetera/ have all I got onto my CVS.\n\nWhat can I do to fix that and have \"real\" content into my project\n?\n\nRegards,\n-- \nXavier\n"},{"id":"36755","messageId":"1173552693.5975.13.camel@localhost","threadId":"7183","inReplyTo":"200703101809.l2AI9lin005409@localhost.localdomain","subject":"Re: git-cvsimport: all my files are marked deleted ?","fromName":"Raimund Bauer","fromEmail":"ray007@gmx.net","sentAt":"2007-03-10T18:51:33Z","receivedAt":"2007-03-10T18:51:33Z","isPatch":false,"sender":{"key":"ray007@gmx.net","avatar":null},"body":"On Sat, 2007-03-10 at 19:09 +0100, Xavier Maillard wrote:\n> Then I went back to <directory> and I just did 'ls'. Directory is\n> empty (except the .git directory).\n\n'git checkout -f' is your friend here.\n\nNot long ago I was wondering about the same thing ...\n\n-- \nbest regards\n\n  Ray\n"},{"id":"36762","messageId":"200703101937.l2AJbYtn007143@localhost.localdomain","threadId":"7183","inReplyTo":"1173552693.5975.13.camel@localhost","subject":"Re: git-cvsimport: all my files are marked deleted ?","fromName":"Xavier Maillard","fromEmail":"zedek@gnu.org","sentAt":"2007-03-10T19:37:34Z","receivedAt":"2007-03-10T19:37:34Z","isPatch":false,"sender":{"key":"zedek@gnu.org","avatar":null},"body":"   From: Raimund Bauer <ray007@gmx.net>\n\n   On Sat, 2007-03-10 at 19:09 +0100, Xavier Maillard wrote:\n   > Then I went back to <directory> and I just did 'ls'. Directory is\n   > empty (except the .git directory).\n\n   'git checkout -f' is your friend here.\n\n   Not long ago I was wondering about the same thing ...\n\nOh great ! You are my safer !\n\n-- \nXavier\n"},{"id":"38651","messageId":"20070404202251.GA21616@planck.djpig.de","threadId":"7183","inReplyTo":"1173552693.5975.13.camel@localhost","subject":"Re: git-cvsimport: all my files are marked deleted ?","fromName":"Frank Lichtenheld","fromEmail":"frank@lichtenheld.de","sentAt":"2007-04-04T20:22:52Z","receivedAt":"2007-04-04T20:22:52Z","isPatch":false,"sender":{"key":"frank@lichtenheld.de","avatar":"https://gravatar.com/avatar/b9f1d4b120e138f157c9e480d0818197c474628923786adb98f30017cdb99c3c?d=mp&s=160"},"body":"On Sat, Mar 10, 2007 at 07:51:33PM +0100, Raimund Bauer wrote:\n> On Sat, 2007-03-10 at 19:09 +0100, Xavier Maillard wrote:\n> > Then I went back to <directory> and I just did 'ls'. Directory is\n> > empty (except the .git directory).\n> \n> 'git checkout -f' is your friend here.\n> \n> Not long ago I was wondering about the same thing ...\n\nI was hit by this today, too. Luckily I remembered vaguely that\nit came up on the list not long ago :)\n\nBut it leaves me with the question (to the list): Why doesn't do\ngit-cvsimport a checkout -f? It seems like the right thing to\ndo (at the very least for initial imports that create a new repository).\n\nGruesse,\n-- \nFrank Lichtenheld <frank@lichtenheld.de>\nwww: http://www.djpig.de/\n"}]}