git svn克隆:“访问被禁止”

问题描述 投票:0回答:1

我尝试克隆 SVN 存储库,但出现错误

git svn clone http://<IP-address of the host>:<port>/svn/<name of the project>/java/common -s -r 10:HEAD
Initialized empty Git repository in C:/Users/user/IdeaProjects/some-project/.git/
Can't create session: Unable to connect to a repository at URL 'http://<IP-address of the host>:<port>/svn/<name of the project>/java/common': 
Access to '/svn/<name of the project>/java/common' forbidden at C:/Program Files/Git/mingw64/share/perl5/Git/SVN.pm line 310. 

这些是

SVN.pm
文件的第 309-311 行(第 310 行在中间)

    } elsif ($_minimize_url) {
        my $min_url = Git::SVN::Ra->new($url)->minimize_url;
        $existing = find_existing_remote($min_url, $r);

这是我尝试执行时得到的结果

svn co

svn co http://<IP-address of the host>:<port>/svn/<name of the project>/java/common 
Username: zolotarevsa                                                                                                              
Password for 'zolotarevsa': **************                                                                                         
svn: E170013: Unable to connect to a repository at URL 'http://<IP-address of the host>:<port>/svn/<name of the project>/java/common'                             
svn: E175013: Access to '/svn/<name of the project>/java/common' forbidden  

svn info
,带有被截断的参数(在评论中建议)

svn info http://<IP-address of the host>:<port>/svn                                                                  
Authentication realm: <http://10.0.0.1:83> SVN Server Login                                                                        
Password for 'zolotarevsa': **************                                                                                         
svn: E170013: Unable to connect to a repository at URL 'http://10.0.0.1:83/svn'                                                    
svn: E175002: Unexpected server error 500 'Internal Server Error' on '/svn' 

我应该怎样做才能成功进行克隆?我是不是有点操之过急,我只是还没有获得必要的权限(这是我上班的第一天)?

git svn git-svn
1个回答
0
投票

看来是权限问题。我再次执行了

git svn clone
,现在得到:

Using higher level of URL: http://<IP-address of the host>:<port>/svn/<name of the project>/java/common => http://<IP-address of the host>:<port>/svn/<name of the project>                                          
W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: File not found: revision 110, path '/java/common'           
W: Do not be alarmed at the above message git-svn is just searching aggressively for old history.                                                       
This may take a while on large repositories                                                                                                             
Checked through r610

然后它就冻结了。我不确定克隆 10 个提交是否需要这么长时间,还是

-r
由于某种原因无法工作

© www.soinside.com 2019 - 2024. All rights reserved.