git cvsimport错误:“root ...必须是绝对路径名” [英] git cvsimport Error: "root ... must be an absolute pathname"

查看:155
本文介绍了git cvsimport错误:“root ...必须是绝对路径名”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  lawsa〜/ java / projects / iu $ git cvsimport -C ../iugit ebs / fs / kfs 
来自服务器的预期有效请求,但得到:E Root
:extssh:lawsa@cvs.uits.iu.edu:/ srcctrl / CVS必须是绝对路径名
lawa〜/ java / projects / iu $

我看到另一个人此处有类似的问题。他引用他的解决方案:只要我使用匿名访问,那么我就可以使转换工作!。这是行不通的,因为我们的服务器肯定不会允许匿名访问(即使它们用于读取,我需要读取/写入权限)。



我遵循来自 gitcvs-migration 的说明:

  ... cd to签出您感兴趣的项目的CVS工作目录
并运行git-cvsimport(1):

$ git cvsimport -C< destination> <模块>

我遵循了这些指示(并有 cvsps 版本2.1)导航到本地工作副本。很显然,在我的工作副本中, git cvsimport 是从 CVS 目录中找到我的CVS_ROOT,因为我没有指定它,但它显示在错误消息中。



请让我知道你是否可以提供帮助。请记住,小事可能会很大! : - )

解决方案

我终于用git cvs命令取得了一些成功。看来你可以导入你的目录而不用在你的CVS根目录中指定:extssh。只需进入一个新目录并输入:

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

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


I'm trying to clone a CVS repository using git:

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$ 

I see that another man had a similar problem here. He cites his solution: "As long as I use anonymous access then I can get the convert working!". This doesn't work as our server will certainly not allow anonymous access (even if they did for reads, I need read/write access).

I'm following the instructions from gitcvs-migration which says:

...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>

I have followed these instructions (and have cvsps version 2.1) by navigating to a local working copy. It's obvious that git cvsimport is finding my CVS_ROOT from the CVS directory in my working copy because I didn't specify it, but it's showing up in the error message.

Please let me know if you can help. Remember, something small could be something big! :-)

解决方案

I finally had some success with the git cvs command. It seems that you can import your directory without specifying :extssh in your cvs root. Simply go to a new directory and enter:

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

This solved the "must be an absolute pathname" error.

这篇关于git cvsimport错误:“root ...必须是绝对路径名”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆