You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Dan Ports <dr...@csail.mit.edu> on 2011/10/12 01:08:42 UTC
`svn ci -F -` fails on svn+ssh due to APR bug
I recently noticed that commits fail with the following error when the
commit message is read from stdin (i.e. `svn ci -F -`) and the
repository is being accessed using svn+ssh:
> svn ci -F -
<creative log message here>
^D
svn: Commit failed (details follow):
svn: Can't write to connection: Broken pipe
I tracked this down to a bug in APR where a child process's file
descriptors won't be properly set up if the parent's stdin has already
been closed. I've already filed a bug against APR for this:
https://issues.apache.org/bugzilla/show_bug.cgi?id=51995
but thought I'd mention it here too since I noticed the error with svn.
(As for why I wanted to pass the commit message on stdin in the first
place, I'm using a custom emacs mode that lets me interactively choose
which files to commit, and that's how it invokes svn to do the actual
commit.)
Dan
--
Dan R. K. Ports MIT CSAIL http://drkp.net/