Git Svn - 找到可能的分支点 [英] Git Svn - Found possible branch point

查看:146
本文介绍了Git Svn - 找到可能的分支点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用 git svn 将SVN回购克隆到Git中。

I'm trying to use git svn to clone a SVN repo into Git.

我运行以下命令:

I run the following command:


\ Projects \\ git svn clone -T trunk -b branches -t tags --no-metadata https://svn.mycompany.com/Projects/MyProject MyProject

C:\Projects>git svn clone -T trunk -b branches -t tags --no-metadata https://svn.mycompany.com/Projects/MyProject MyProject

我得到以下错误:

And I get the following error:


找到可能的分支点:$ b​​ $ b https://svn.mycompany.com/Projects/MyProject/trunk =>
https://svn.mycompany.com/Projects/MyProject/tags/11.1.9.33334 ,33334

Found possible branch point: https://svn.mycompany.com/Projects/MyProject/trunk => https://svn.mycompany.com/Projects/MyProject/tags/11.1.9.33334, 33334


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

Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/Git/SVN.pm line 106.

在串联(。)或
/ usr / lib / perl5 / site_中使用未初始化的值perl / Git / SVN.pm line
106.refs / remotes / MyProject-10.2:' https://svn.mycompany.com / Projects>

git的版本为:

1.8.1.msysgit.1

1.8.1.msysgit.1

推荐答案

我的问题是由于如此大的SVN日志),它在某些时刻保持崩溃,当我重新启动时,它在我的.git / config文件中创建了多行分支和标记。

My problem was that due to such a large SVN (files and log) that it kept crashing at some points and when I restarted it created multiple lines of the branches and tags within my .git/config file.

branches = branches/*:refs/remotes/svn/branches/*
tags = tags/*:refs/remotes/svn/tags/*

我只是删除了这些重复的条目,并用我的命令重新启动了

I simply removed the duplicate entries of these and restarted with my command

git svn fetch

这篇关于Git Svn - 找到可能的分支点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆