gitgit-svndcommit

git svn dcommit fails with "Incomplete data: Delta source ended unexpectedly"


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!


Solution

  • 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.