Git svn rebase失败 [英] Git svn rebase fails
问题描述
我使用 git svn
来追踪SVN回购。当我尝试执行 git svn rebase
时,出现此错误:
I use git svn
to track a SVN repo. When I try to do a git svn rebase
I am getting this error:
Incomplete data: Delta source ended unexpectedly
这是一个历史悠久的大型回购协议。刚刚提取原始的单一修订花了差不多90分钟,所以我不想reclone。
This is a large repo, with a long history. Just fetching the original single revision took almost 90mins, so I don't want to reclone.
有什么方法可以追踪哪个文件导致错误,或者解决这个问题的方法?
Are there any ways to track down which file is causing the error, or any solution to this problem?
推荐答案
这可能类似于SO问题 git svn rebase:不完整的数据:Delta源意外结束,因为它可能会链接到 autocrlf选项 。
This could be similar to SO question "git svn rebase: Incomplete data: Delta source ended unexpectedly", in that it may be linked to the autocrlf option.
此 git邮件列表上的线程讨论了此问题在当时,用户试图:
This thread on git mailing list discusses this issue at length last year in 2008. At the time, the user tried:
为了解决这个问题,我将SVN的完整文件内容作为下一个版本。这是
转储和缓慢,但它的工作。
To fix this situation I take full file content from SVN as next revision. This is dump and slow but it works.
您使用的是什么版本的Git(或msysGit)?这似乎是一个已知的问题,我不确定它已被确定地修复。
但首先,您是否在svn到git导入期间进行一些CRLF转换?
What version of Git (or msysGit) are you using? It seems to be a known issue, and I am not sure it has been conclusively fixed.
But first, are you doing some CRLF conversions during your svn to git imports?
这篇关于Git svn rebase失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!