git-svn clone或svn2git意外停止 [英] git-svn clone or svn2git unexpectedly stopping

查看:518
本文介绍了git-svn clone或svn2git意外停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用以下命令从git迁移到svn:

  git svn clone --stdlayout https:/ / my_sourcecontrol 

或使用git2svn

  svn2git --notags https:// sourcecontrol -v 

迁移,它只停留在以下语句中:

  W:-empty_dir:目录

当我做一个git分支-a



我看到它已经导入了标签并且一些前段时间被删除的分支机构。此外,它还没有导入任何现有的分支,仅仅是前一段时间删除的分支。



任何人都可以阐明发生了什么吗?

解决方案

你可以用一个较小的克隆来试验一下,例如,一开始只做一个分支来查看它是否有效。 >

我见过类似的问题:运行了几分钟后,git-svn fetch(它在git svn clone下运行)用signal 13停止。



我的输出中没有看到任何错误信息,但在Windows或其他平台上可能有所不同。尽管如此,运行git svn fetch应该从中断的地方继续。我做了一个shell脚本循环来运行fetch,直到它完成(你需要cygwin / * nix来运行它):

 而! git svn fetch;做回声git-svn停止。重新启动...我;完成


I am trying to migrate from git to svn with the following command:

git svn clone --stdlayout https://my_sourcecontrol

or with git2svn

svn2git --notags https://sourcecontrol -v

During the migration, it just stops with the following statement:

W: -empty_dir: directory

When I do a git branch -a

I see it has imported the tags and a number of branches that were deleted some time ago. Also, it has not imported any of the existing branches only the ones that were deleted some time ago.

Can anyone shed any light on what is going on?

解决方案

You could experiment a bit with a smaller clone, only doing one branch at first to see if that works, for example.

I've seen a similar problem: After running for a couple of minutes, git-svn fetch (which runs under the hood of git svn clone) halts with "signal 13".

I don't see any error message in your output, but maybe it's different on Windows or something. Nonetheless, running git svn fetch should pick up where it left off. I made a little shell-script loop to run fetch until it's done (you need cygwin/*nix to run this):

while ! git svn fetch; do echo "git-svn halted. Restarting...i"; done

这篇关于git-svn clone或svn2git意外停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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