我做了一个新的git cvsimport到一个新文件夹,大约30分钟后它终于完成但它似乎没有得到任何CVS文件夹。由于cvsexportcommit在目录中查找CVS文件夹,因此失败。我的cvsimport命令类似于下面的内容:
git cvsimport -v -r cvs -d $CVSROOT <module>
然后我在工作分支中进行了更改,检出了master,执行了另一个cvsimport,将工作分支合并到master上,然后在运行时:
git cvsexportcommit -w . -u -p -c ORIG_HEAD HEAD
该文件夹显然不是CVS仓库,(任何地方都没有CVS文件夹)。
is not a CVS checkout at
答案 0 :(得分:2)
git cvsimport
的结果是git存储库。 -w
的目标git cvsexportcommit
是cvs工作副本。如果要导出回cvs,则需要执行mkdir cvsworking; cd cvsworking; cvs co $CVSROOT <module>
,然后从git dir执行git cvsexportcommit -w path/to/cvsworking/module -u -p -c ORIG_HEAD HEAD
。它不像git-svn
那样集成。