【发布时间】:2018-05-15 07:25:02
【问题描述】:
我在 RHEL 7.3 x86_64 VM 上安装了 subversion 1.9。下面是svn版本的输出。
[root@<hostname> ~]# svn --version
svn, version 1.9.7 (r1800392)
compiled Aug 10 2017, 21:36:06 on x86_64-redhat-linux-gnu
Copyright (C) 2017 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/
The following repository access (RA) modules are available:
* ra_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
- using serf 1.3.8 (compiled with 1.3.7)
- handles 'http' scheme
- handles 'https' scheme
The following authentication credential caches are available:
* Plaintext cache in /root/.subversion
* Gnome Keyring
* GPG-Agent
我已经安装了 git 2.9。下面是 git 版本的输出。
[root@<hostname> ~]# git --version
git version 2.9.5
任何导致以下错误的 git svn 操作。
[root@<hostname> codebase]# git svn fetch
Bad URL passed to RA layer: Unrecognized URL scheme for 'http://<IP>:<PORT>/svn/trunk/Automation/UCM' at /usr/local/git/share/perl5/Git/SVN.pm line 144.
下面是perl版本。
[root@<hostname> ~]# perl --version
This is perl 5, version 18, subversion 2 (v5.18.2) built for x86_64-linux
Copyright 1987-2013, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
已经使用命令 cpan SVN::core 安装了 Alien SVN,并且还安装了 subversion perl 二进制文件。
谷歌搜索但无法正常工作。尝试了here 提到的解决方案,但没有运气。 谁能告诉我如何解决这个问题?
【问题讨论】:
-
你启动了一个svn repo了吗?
-
@xxfelixxx,是的,我最初运行了成功运行的“git svn init
”。然后当我运行“git svn fetch”时,我最终得到了我在问题中发布的错误。 -
@ikegami,不,我用
替换了“实际 http URL”。 -
你是否设置了一个不同的 svn repo 并将其设置为这个 git svn repo 的远程?
-
准确地说,我有一个通过 http 运行的 SVN 存储库,并使用 'git svn init IP:PORT/svn/trunk/Automation/UCM' 对其进行初始化,然后我使用命令 'git remote add origin IP:PORT/svn/trunk/Automation/UCM' 设置远程然后做一个'git svn fetch'。最后一个命令因我在问题中发布的错误而失败。