Git cvsimport - No CVS folders which causes cvsexportcommit to fail

末鹿安然 提交于 2019-12-13 07:39:44

问题


I did a fresh git cvsimport into a new folder, after about 30 minutes it was finally done but it didn't seem to get any of the CVS folders. Since cvsexportcommit looks for the CVS folder in the directory, it fails. My cvsimport command was similar to below:

git cvsimport -v -r cvs -d $CVSROOT <module>

I then made changed in a work branch, checked out master, performed another cvsimport, merged the work branch onto master but then when running:

git cvsexportcommit -w . -u -p -c ORIG_HEAD HEAD

The folder is apparently not a CVS repo, (No CVS folders anywhere).

is not a CVS checkout at 

回答1:


The result of git cvsimport is a git repository. The target -w of git cvsexportcommit is a cvs working copy. If you want to export back to cvs you need to do mkdir cvsworking; cd cvsworking; cvs co $CVSROOT <module> and then from the git dir do your git cvsexportcommit -w path/to/cvsworking/module -u -p -c ORIG_HEAD HEAD. It's not as well integrated as git-svn.



来源:https://stackoverflow.com/questions/5240195/git-cvsimport-no-cvs-folders-which-causes-cvsexportcommit-to-fail

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!