git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [BUG] git-svn dcommit fails (connection closed unexpectedly)

From
MEMartin Eisenhardt <list-receive@mneisen.org>
Date
May 13, 2007, 17:49 UTC
Message-ID
<200705131949.38051.list-receive@mneisen.org>
In-Reply-To
<20070513171707.GA14024@muzzle>

Hi Eric, hi Matthieu, hi list,

On Sunday 13 May 2007 19:17:07 Eric Wong wrote:
Show 9 quoted lines
> Matthieu Moy <Matthieu.Moy@imag.fr> wrote:
> > I'm using git-svn, which usually works fine, but I occasionally get
> > this:
> >
> > $ git-svn dcommit
> >         A       file1
> >         A       file2
> > Network connection closed unexpectedly: Connection closed unexpectedly at
> > /path/to/git-svn line 401 $
I ran into that one, too ... :-(
> > The failure seems to depend on the commit's I'm pushing, since this is
> > reproducible when running several times "dcommit" for the same commit,
> > but the same command also usually works fine on the same repositories
> > (same git repo, same svn target).

I assume that the dcommit runs fine for *other* commits but not for that one that produced the error cited above.

In my case, it was simply a problem on my side: I had tried to add a file, that already existed in the repository - and subversion rejected the commit. Of course, it would be nice if git-svn could simply tell the user about his error, i.e., simply copy the output of libsvn or whatever it is using to connect to the subversion repo.

Another case where I stumbled upon said error message was when I added an empty (sub)directory to a project in subversion and then used git to track that project. Since git cannot track an empty directory, it did not appear in my git working copy. When I mkdir'd the directory locally (in my git wc) and then tried to add files within that repository, I got exactly the same error as Matthieu.

>
> Does the patch in
>   http://permalink.gmane.org/gmane.comp.version-control.git/47126
> help?

Not in my case, although this patch resolved the other issue, thanks again btw!

Kind regards Martin Eisenhardt

Previous: Eric WongNext: Karl Hasselström
Message 12 of 18 in “[BUG] git-svn dcommit fails (connection closed unexpectedly)”
  1. Matthieu MoyMay 11, 2007
  2. Lars HjemliMay 11, 2007
  3. Lars HjemliMay 11, 2007
  4. Matthieu MoyMay 11, 2007
  5. Matthieu MoyMay 14, 2007
  6. Eric WongMay 19, 2007
  7. git-svn: avoid crashing svnserve when creating new directoriesEric Wong, May 19, 2007
  8. Matthieu MoyMay 19, 2007
  9. Eric WongMay 19, 2007
  10. Matthieu MoyMay 19, 2007
  11. Eric WongMay 13, 2007
  12. Martin EisenhardtMay 13, 2007
  13. Karl HasselströmMay 13, 2007
  14. Eric WongMay 13, 2007
  15. Eric WongMay 14, 2007
  16. Linus TorvaldsMay 14, 2007
  17. Matthieu MoyMay 14, 2007
  18. Matthieu MoyMay 14, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.