3

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!

2
  • what tool are you using? I mean which flavour of git (msysgit, git in cygwin, etc) and also are you using any git GUI tool? Commented Mar 8, 2011 at 18:08
  • No GUI. I'm using the version of git installed by the Ubuntu package manager. Commented Mar 8, 2011 at 18:42

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

0

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.

1 Comment

I'm running the latest of git and SVN, but unfortunately I have no control over the remote SVN server.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.