Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
git svn使用git 1.5.1和1.6.5以及Subversion 1.4.2克隆错误_Svn_Git_Clone - Fatal编程技术网

git svn使用git 1.5.1和1.6.5以及Subversion 1.4.2克隆错误

git svn使用git 1.5.1和1.6.5以及Subversion 1.4.2克隆错误,svn,git,clone,Svn,Git,Clone,我正在尝试将git集成到我的工作流程中。我开始使用它来管理从Subversion存储库克隆的代码的工作副本 我已经尝试使用Git1.5.1和1.6.5。这两个都是从源代码构建的。我正在使用官方的Debian包进行Subversion。使用两个版本的git会产生如下所示的相同错误 $ svn --version svn, version 1.4.2 (r22196) compiled Aug 6 2009, 16:45:47 Copyright (C) 2000-2006 CollabN

我正在尝试将git集成到我的工作流程中。我开始使用它来管理从Subversion存储库克隆的代码的工作副本

我已经尝试使用Git1.5.1和1.6.5。这两个都是从源代码构建的。我正在使用官方的Debian包进行Subversion。使用两个版本的git会产生如下所示的相同错误

$ svn --version
svn, version 1.4.2 (r22196)
   compiled Aug  6 2009, 16:45:47

Copyright (C) 2000-2006 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme

$ git --version
git version 1.6.5

$ git-svn clone -s file://localhost/home/foo/bar/ .
perl: /tmp/buildd/subversion-1.4.2dfsg1/subversion/libsvn_subr/path.c:114: svn_path_join: Assertion `is_canonical(base, blen)' failed.
Aborted

这里有没有人经历过这样或类似的问题?我以前在谷歌上搜索过这个断言错误,我确实找到了结果,但它们似乎与git svn没有特别的关系。这个错误可能是因为试图在表单
的路径上使用
git svn clone
造成的吗file://...
而不是
http://...

是的,我不认为您在SVN
文件中使用
localhost
://
URL。我的git svn克隆使用
文件://
作为URL(因此
file:///var/lib/svn/blah
获取本地计算机上的
/var/lib/svn/blah

尝试
git svn clone-sfile:///home/foo/bar
localhost
在使用常规svn命令时,对我来说效果很好。你关于git的提示证明是有效的。要让它工作起来,所需要做的就是转换我的URLfile://localhost/home/svn/repository-name/project-name/ 到file:///home/svn/repository-name/project-name/