简体   繁体   English

我可以用 git-svn 初始化和获取文件,但不能克隆

[英]I can init and fetch file with git-svn, but can't clone

I read the manual and it said clone is Runs init and fetch .我阅读了手册,它说cloneRuns init and fetch

But I tried this:但我试过这个:

git svn clone -T http://svn.felspar.com/public/m-intercept/trunk/

then got:然后得到:

fileparse(): need a valid pathname at /usr/lib/git-core/git-svn line 405 fileparse():在 /usr/lib/git-core/git-svn 第 405 行需要一个有效的路径名

And not any file was downloaded.并且没有下载任何文件。

But when I used:但是当我使用时:

git svn init http://svn.felspar.com/public/m-intercept/trunk/
git svn fetch

All right.好的。 It works perfectly.它完美地工作。 I use the exact same URL.我使用完全相同的 URL。

The -T parameter expects the name of the trunk dir. -T 参数需要主干目录的名称。

Normal usage would be正常使用是

git svn clone -T trunk -t tags -b branches http://svn.felspar.com/public/m-intercept

to tell git where to look for trunk, tags and branches and map them to git tags and branches.告诉 git 在哪里寻找主干、标签和分支,并将 map 告诉 git 标签和分支。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM