Git Svn-找到可能的分支点

Git Svn-找到可能的分支点,git,git-svn,Git,Git Svn,我正在尝试使用gitsvn将svn回购克隆到git中 我运行以下命令: C:\Projects>git svn clone-T trunk-b branchs-T标记--无元数据MyProject 我得到以下错误: 找到可能的分支点: => ,33334 在替换中使用未初始化的值(s//) /usr/lib/perl5/site_perl/Git/SVN.pm第106行 在连接(.)或字符串中使用未初始化的值 /usr/lib/perl5/site_perl/Git/SVN.pm行 106.参考

我正在尝试使用
gitsvn
将svn回购克隆到git中

我运行以下命令:

C:\Projects>git svn clone-T trunk-b branchs-T标记--无元数据MyProject

我得到以下错误:

找到可能的分支点: => ,33334

在替换中使用未初始化的值(s//) /usr/lib/perl5/site_perl/Git/SVN.pm第106行

在连接(.)或字符串中使用未初始化的值 /usr/lib/perl5/site_perl/Git/SVN.pm行 106.参考文件/remotes/MyProject-10.2:“”未在“”中找到“”

git的版本为:


1.8.1.msysgit.1

我的问题是,由于SVN(文件和日志)太大,它在某些点上不断崩溃,当我重新启动时,它在.git/config文件中创建了多行分支和标记

branches = branches/*:refs/remotes/svn/branches/*
tags = tags/*:refs/remotes/svn/tags/*
我只是删除了重复的条目,然后用命令重新启动

git svn fetch

我遇到了同样的错误,并通过升级到git版本2.6.2.windows.1解决了它。同样的错误。我正在将我的SVN存储库转换为Git

git version 2.8.2.windows.1
Windows 8.1 Pro 64bits, running Git For Windows 32bits.
v1,中继地址错误,错误设置为与存储库根相同:

C:\Windows\system32>git svn clone https://mycompany.svn.beanstalkapp.com/myproject 
        --no-metadata -A c:\temp\svn_to_git_users.txt 
        --trunk=https://mycompany.svn.beanstalkapp.com/myproject 
        --tags=https://mycompany.svn.beanstalkapp.com/myproject/tags 
        --branches=https://mycompany.svn.beanstalkapp.com/myproject/branches
        c:\code\Git_myproject

[...]
W: +empty_dir: branches/20080918_DBDEPLOY/vendor/src/csharp/MS WCSF Contrib/src/Services
W: +empty_dir: branches/20080918_DBDEPLOY/vendor/src/csharp/RealWorldControls/References
r530 = c276e3b039d8e38759c6fb17443349732552d7a2 (refs/remotes/origin/trunk)
Found possible branch point: https://mycompany.svn.beanstalkapp.com/myproject/trunk => https://mycompany.svn.beanstalkapp.com/myproject/branches/20080918_DBDEPLOY, 529
Use of uninitialized value $u in substitution (s///) at /mingw32/share/perl5/site_perl/Git/SVN.pm line 101.
Use of uninitialized value $u in concatenation (.) or string at /mingw32/share/perl5/site_perl/Git/SVN.pm line 101.
refs/remotes/origin/trunk: 'https://mycompany.svn.beanstalkapp.com/myproject' not found in ''

C:\Windows\system32>
v2工作:修正路径(并使用相对而不是绝对来缩短行)

按照其他人的建议,我打开了配置文件(C:\code\Git\u myproject.Git\config),第一个版本(已损坏)如下所示。与v2相比,fetch可能是错误的(分支和标记也是重复的,有些人说这也可能导致问题)

第二个版本(工作)是:

查看svn.pm,我可以看到我们在
find\u parent\u branch()。然后它会呼叫
other_-gs($new_-url,$url,$branch_-from,$r,$self->{ref_-id})
其本身称为:
Git::SVN->find_by_url($new_url,$url,$branch_from)
这要求:
解析本地全局($u,$fetch,$globspec)
resolve\u local\u globs
是在第100/101行抛出错误的地方:

my $u = (::cmt_metadata("$refname"))[0];
$u =~ s!^\Q$url\E(/|$)!! or die

我确实在命令行中犯了一个错误,修复了我的主干路径就消除了这个错误。我从未删除配置文件中的重复行,它们是在重新运行命令时自动调整的。

只是一个提示:
可能的分支点
消息是正常的,没有错误。确定。。。但我的回购文件夹不包含主干分支或标记。。。。里面只有.git文件夹没有标记
https://svn.mycompany.com/Projects/MyProject/tags/11.1.9.33334
?您应该提到……git的哪个版本?
使用初始化值…
位可能表示存在错误。。。也许试试新的版本。。。就这点而言,svn的哪个版本(虽然我不确定是否存在直接依赖关系…)?不确定svn的哪个版本,但git是最新的。。。今天安装。我也有同样的问题,但我删除了所有分支和标记的条目,因为svn2git在“恢复”时添加了它们。谢谢你的提示,为我工作。在删除了.git/config文件中的重复项后,我继续使用“git svn fetch”。谢谢。为我工作的方法是删除.git\config中的两行额外内容,然后在@Wolfgang编写时用“git svn fetch”继续。谢谢@ryan hayes的编辑,我知道我错过了那一行!
[svn-remote "svn"]
noMetadata = 1
url = https://mycompany.svn.beanstalkapp.com/myproject
fetch = :refs/remotes/origin/trunk
branches = branches/*:refs/remotes/origin/*
tags = tags/*:refs/remotes/origin/tags/*
branches = branches/*:refs/remotes/origin/*
tags = tags/*:refs/remotes/origin/tags/*
[svn-remote "svn"]
noMetadata = 1
url = https://mycompany.svn.beanstalkapp.com/myproject
fetch = trunk:refs/remotes/origin/trunk
branches = branches/*:refs/remotes/origin/*
tags = tags/*:refs/remotes/origin/tags/*
my $u = (::cmt_metadata("$refname"))[0];
$u =~ s!^\Q$url\E(/|$)!! or die