简体   繁体   English

git svn dcommit因“不完整的数据:Delta源意外结束”而失败

[英]git svn dcommit fails with “Incomplete data: Delta source ended unexpectedly”

I'm working with a remote team using an SVN repository. 我正在使用SVN存储库与远程团队合作。 Mostly because of the high latency I experienced when contacting the repository, I decided to use git-svn. 主要是因为我在联系存储库时遇到的高延迟,我决定使用git-svn。 Everything is working great until I attempt to dcommit. 一切都很好,直到我试图推迟。

I have several local commits, and only one of them I want to push to SVN. 我有几个本地提交,其中只有一个我想推送到SVN。 I did git rebase -i HEAD~4 to mark the commit I needed for editing. 我做了git rebase -i HEAD~4来标记我需要编辑的提交。 git svn dcommit -n confirms that this is the only revision which will be committed. git svn dcommit -n确认这是唯一将提交的修订版。

However, running git svn dcommit gives the error 但是,运行git svn dcommit会出错

Incomplete data: Delta source ended unexpectedly

from line 572 of git-svn which is 来自git-svn第572行

if (!SVN::Git::Editor->new(\%ed_opts)->apply_diff) {

I'm not sure if committing via SVN directly works yet as it takes hours to checkout the repository (even just the portion I'm interested in) so I can attempt a commit. 我不确定通过SVN提交是否直接工作,因为它需要几个小时来检查存储库(甚至只是我感兴趣的部分)所以我可以尝试提交。

Any help is appreciated. 任何帮助表示赞赏。 Thanks in advance! 提前致谢!

The end result ended up being a permissions issue with the remote SVN server. 最终结果是远程SVN服务器的权限问题。 I re-initialized my git-svn repository and double-checked my path to the server and all seems to be well now. 我重新初始化了我的git-svn存储库,并仔细检查了我的服务器路径,现在一切都好了。 IIRC, the issue was HTTP vs. HTTPS. IIRC,问题是HTTP与HTTPS。 ie, I could checkout the repository over HTTP, but not commit. 即,我可以通过HTTP检出存储库,但不能提交。

Based on a bit of googling , the problem also occurs in pure SVN. 基于一点谷歌搜索 ,问题也发生在纯SVN。

Check which version of SVN you are using with git svn --version - perhaps an upgrade will help. 使用git svn --version检查您正在使用的git svn --version - 也许升级会有所帮助。 Updating to the latest version of git could help as well. 更新到最新版本的git也有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM