git svn dcommit 失败并显示“数据不完整:增量源意外结束”

发布于 2024-10-21 00:56:54 字数 503 浏览 4 评论 0原文

我正在与一个使用 SVN 存储库的远程团队合作。主要是因为我在联系存储库时经历了高延迟,所以我决定使用 git-svn。在我尝试提交之前,一切都运行良好。

我有几个本地提交,但我只想将其中之一推送到 SVN。我做了 git rebase -i HEAD~4 来标记编辑所需的提交。 git svn dcommit -n 确认这是唯一要提交的修订。

给出错误,

Incomplete data: Delta source ended unexpectedly

但是,运行 git svn dcommit 会从 git-svn 的第 572 行

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

我不确定通过 SVN 直接提交是否有效,因为需要几个小时才能签出存储库(甚至只是我感兴趣的部分),以便我可以尝试提交。

任何帮助表示赞赏。提前致谢!

I'm working with a remote team using an SVN repository. Mostly because of the high latency I experienced when contacting the repository, I decided to use 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. I did git rebase -i HEAD~4 to mark the commit I needed for editing. git svn dcommit -n confirms that this is the only revision which will be committed.

However, running git svn dcommit gives the error

Incomplete data: Delta source ended unexpectedly

from line 572 of git-svn which is

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.

Any help is appreciated. Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

深者入戏 2024-10-28 00:56:54

最终结果是远程 SVN 服务器出现权限问题。我重新初始化了我的 git-svn 存储库并仔细检查了我的服务器路径,现在一切似乎都很好。 IIRC,问题是 HTTP 与 HTTPS。即,我可以通过 HTTP 检出存储库,但不能提交。

The end result ended up being a permissions issue with the remote SVN server. I re-initialized my git-svn repository and double-checked my path to the server and all seems to be well now. IIRC, the issue was HTTP vs. HTTPS. i.e., I could checkout the repository over HTTP, but not commit.

清晰传感 2024-10-28 00:56:54

基于谷歌搜索,纯SVN也会出现该问题。

使用 git svn --version 检查您使用的 SVN 版本 - 也许升级会有所帮助。更新到最新版本的 git 也会有帮助。

Based on a bit of googling, the problem also occurs in pure SVN.

Check which version of SVN you are using with git svn --version - perhaps an upgrade will help. Updating to the latest version of git could help as well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文