2011-10-25 62 views
4

基於文件的訪問,我得到以下錯誤,當我嘗試克隆的git的SVN倉庫:的git - svn的一起倉庫

$ git svn clone "file:////stevenagefs/Projects/6500-6999/6792/DesignSVNRepos" 
"DesignGit" -T trunk -b branches -t tags -r 0:HEAD 
Couldn't open a repository: Unable to open an ra_local session to URL: Unable to 
open repository 'file:///stevenagefs/Projects/6500-6999/6792/DesignSVNRepos' at 
    C:\Apps\Git/libexec/git-core\git-svn line 2210 

有什麼我做錯了或者是它無法使用git-svn是這樣的嗎?

請注意,我知道對SVN存儲庫的基於文件的訪問被認爲是有害的,但這就是我所擁有的。

回答

3

您被允許進行文件訪問,但前提是客戶端需要文件訪問支持(ra_local)編譯,其中git-svn似乎不是。如果你真的想要文件訪問,你將需要建立自己的git-svn客戶端。

+0

您也可以暫時運行'svnserve -d',然後對'svn:// localhost/path'執行'clone'操作。 –