不完整的数据:当git svn获取时,Delta源意外结束 [英] Incomplete data: Delta source ended unexpectedly while git svn fetch
问题描述
无论如何,git svn fetch每天都工作得很好,直到2天前,我现在可以获得
pre > 不完整的数据:Delta源意外终止于/usr/lib/perl5/site_perl/Git/SVN/Ra.pm第290行
进行特定修订。我在网上尝试了关于git svn reset的不同建议,并且返回了一些修订版本,并且我返回了大约20个版本,但没有运气。我也尝试运行:
git config --get core.autocrlf
给了 true
。
I知道svn回购工作正常,我没有问题做svn了。
任何想法如何我可以回到正轨再次同步?我坚持不知道该怎么尝试。
我可能会透露一个问题。我不记得,但在运行这个问题之前,我可能有一个磁盘上的磁盘上的回购是当我试图抓取。也许这会摧毁一些东西?
/ donnib
- 确保没有其他正在运行的git / perl进程(可以创建 index.lock 文件并搞乱当前获取)。 Kill'em all。
- 删除 ... \my_repository.git\.git\svn\refs\remotes\trunk\index.lock
- git svn重置-r SomeSVNRevisionNumberBeforeTheProblematicOne
- git svn抓取
提取应继续从 SomeSVNRevisionNumberBeforeTheProblematicOne 。
<为什么发生这种情况的最可能原因是在同一个存储库上同时运行的两个git实例之间的并发性。
I have cloned my svn repo into git and everyday i am doing git svn fetch (i only do changes in SVN) but i am planning to move to git and i keep the git repo in sync for the day since the svn clone tooke me 2 weeks (yeah it's a big repo).
Anyway the git svn fetch has worked fine every day until 2 days ago where i now get
Incomplete data: Delta source ended unexpectedly at /usr/lib/perl5/site_perl/Git/SVN/Ra.pm line 290
at a specific revision. I tried the different suggestions online about git svn reset and going back some revisions and i went about 20 revisions back with no luck. I also tried to run :
git config --get core.autocrlf
which gave true
.
I know that the svn repo is working good, i have no issues doing svn up.
Any ideas how i can get back on track to sync again ? I am stuck without ideas what to try.
I might reveal one issue. I don't recall but before running the issue i might have had a disk full on the disk where the repo is when i tried the fetch. Maybe that destroyed something ?
/donnib
- Make sure there are no additional git/perl processes running (which could create the index.lock file and mess up the current fetch). Kill'em all.
- Delete the ...\my_repository.git\.git\svn\refs\remotes\trunk\index.lock file
- git svn reset -r SomeSVNRevisionNumberBeforeTheProblematicOne
- git svn fetch
Fetch should continue from the SomeSVNRevisionNumberBeforeTheProblematicOne.
The most probable reason why this happened is concurrency between two git instances running simultaneously on the same repository.
这篇关于不完整的数据:当git svn获取时,Delta源意外结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!