我正在尝试使用 git 克隆 CVS 存储库:
lawsa~/java/projects/iu$ git cvsimport -C ../iugit ebs/fs/kfs
Expected Valid-requests from server, but got: E Root
:extssh:[email protected] /cdn-cgi/l/email-protection:/srcctrl/CVS must be an absolute pathname
lawsa~/java/projects/iu$
我看到另一个人也有类似的问题here http://selenic.com/pipermail/mercurial/2010-June/032726.html。他引用了他的解决方案:“只要我使用匿名访问,那么我就可以让转换工作!”。这不起作用,因为我们的服务器肯定不允许匿名访问(即使它们允许读取,我也需要读/写访问权限)。
我正在按照以下指示进行操作gitcvs-migration
其中说:
...cd to a checked out CVS working directory of the project you are interested in
and run git-cvsimport(1):
$ git cvsimport -C <destination> <module>
我已遵循这些说明(并且已cvsps
版本 2.1)通过导航到本地工作副本。很明显git cvsimport
正在从以下位置找到我的 CVS_ROOTCVS
我的工作副本中的目录,因为我没有指定它,但它显示在错误消息中。
如果您能提供帮助,请告诉我。请记住,小事可能会成为大事! :-)
我终于使用 git cvs 命令取得了一些成功。看来您可以导入目录而无需在 cvs 根目录中指定 :extssh 。只需转到一个新目录并输入:
git cvsimport -v -d user@server:/path/to/dir -r cvs -k my_module
这解决了“必须是绝对路径名”错误。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)