git cvsimport错误:“root ...必须是绝对路径名”

时间:2013-09-19 17:02:35

标签: git version-control cvs git-cvs

我正在尝试使用git:

克隆CVS存储库
lawsa~/java/projects/iu$ git cvsimport -C ../iugit ebs/fs/kfs
Expected Valid-requests from server, but got: E Root
:extssh:lawsa@cvs.uits.iu.edu:/srcctrl/CVS must be an absolute pathname
lawsa~/java/projects/iu$ 

我看到另一个男人有类似的问题here。他引用了他的解决方案:“只要我使用匿名访问,我就可以使转换工作!”。这不起作用,因为我们的服务器肯定不允许匿名访问(即使他们做了读取,我需要读/写访问)。

我正在按照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目录中找到我的CVS_ROOT,因为我没有指定它,但它显示在错误消息中。

如果您能提供帮助,请与我们联系。记住,小的东西可能是大事! : - )

2 个答案:

答案 0 :(得分:1)

我终于使用git cvs命令取得了一些成功。您似乎可以导入您的目录,而无需在您的cvs根目录中指定:extssh。只需转到新目录并输入:

git cvsimport -v -d user@server:/path/to/dir -r cvs -k my_module

这解决了“必须是绝对路径名”错误。

答案 1 :(得分:0)

我很高兴能把它想出来:

lawsa~/java/projects$ git cvsimport -d "$CVSROOT" -C iugit -r cvs -k ebs/fs/kfs
Expected Valid-requests from server, but got: E Root     
:extssh:lawsa@cvs.uits.iu.edu:/srcctrl/CVS must be an absolute pathname
lawsa~/java/projects$ echo $CVSROOT
:extssh:lawsa@cvs.uits.iu.edu:/srcctrl/CVS
lawsa~/java/projects$ CVSROOT=:ssh:lawsa@cvs.uits.iu.edu:/srcctrl/CVS
lawsa~/java/projects$ git cvsimport -d "$CVSROOT" -C iugit -r cvs -k ebs/fs/kfs
Expected Valid-requests from server, but got: E Root 
:ssh:lawsa@cvs.uits.iu.edu:/srcctrl/CVS must be an absolute pathname
lawsa~/java/projects$ CVSROOT=:ext:lawsa@cvs.uits.iu.edu:/srcctrl/CVS                                     
lawsa~/java/projects$ git cvsimport -d "$CVSROOT" -C iugit -v -r cvs -k ebs/fs/kfs                                                                                                                                   
Password: 
Could not chdir to home directory /home/lawsa: No such file or directory
fatal: Needed a single revision
Branch 'master' does not exist.
Either use the correct '-o branch' option,
or import to a new repository.
lawsa~/java/projects$ rm iugit -r
lawsa~/java/projects$ git cvsimport -d "$CVSROOT" -C iugit -v -r cvs -k ebs/fs/kfs
Password: 
Could not chdir to home directory /home/lawsa: No such file or directory
Initialized empty Git repository in /home/lawsa/java/projects/iugit/.git/
Running cvsps...
Password: 
Could not chdir to home directory /home/lawsa: No such file or directory
cvs_direct initialized to CVSROOT /srcctrl/CVS
cvs rlog: Logging ebs/fs/kfs
cvs rlog: Logging ebs/fs/kfs/.settings
cvs rlog: Logging ebs/fs/kfs/batch
cvs rlog: Logging ebs/fs/kfs/batch/.securedir

或许git cvsimport不接受extssh作为身份验证机制?