Re: cvs2git instructions are incomplete
Michael Haggerty <[email protected]>
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.user |
|---|---|
| Message-ID | <[email protected]> |
On 11/08/2011 04:36 PM, Mark R Bannister wrote: > I followed the instructions for converting my CVS repository to git from here: > > http://cvs2svn.tigris.org/cvs2git.html > > However, after the 'git fast-import', I still had an empty directory (except for > '.git'). None of my source files were there. Running 'git status', it looked > like they were scheduled for deletion. How very odd. > > Anyway, this process was the only one that worked for me: > > mkdir myproject.git > cd myproject.git > git init > cat ../cvs2svn-tmp/git-blob.dat ../cvs2svn-tmp/git-dump.dat | git fast-import > git reset HEAD > git checkout-index -a > > The last two commands were necessary to ensure I actually had some source files > to edit at the end of the process. The trunk version of the documentation already included the additional step of running "git checkout master", which accomplishes the same thing. But since people have also been confused about bare/non-bare repositories and usually will need a bare one, I just changed the cvs2git instructions to suggest creating a bare repository then cloning it. The current documentation can (always) be found on the website [1]. Let me know if it looks OK to you. Michael [1] http://cvs2svn.tigris.org/cvs2git.html -- Michael Haggerty [email protected] http://softwareswirl.blogspot.com/ ------------------------------------------------------ http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2909604 To unsubscribe from this discussion, e-mail: [[email protected]].