Bug with svn+ssh (plus workaround)
From: Alan Barrett <apb_at_cequrux.com>
Date: 2006-03-21 16:24:13 CET
I found a horrible interaction between subversion and ssh.
This works:
svn log svn+ssh://host/repo/trunk | less
This doesn't work:
svn log svn+ssh://host/repo/trunk 2>&1 | less
The symptom is that the output is truncated after the first few
The underlying cause is this sequence of events:
1. The shell runs "svn" in such a way that both fd 1 (stdout) and fd 2
2. svn runs ssh, in such a way that ssh's fd 0 (stdin) and fd 1
3. ssh puts its stderr into non-blocking mode. Because ssh's stderr
4. After a while, svn starts writing to stdout. The first few writes
5. svn gives up. It tries to write an error message to stderr, but
As a workaround, I pointed the SVN_SSH environment variable to this
#!/bin/sh
As a fix, I suggest that svn should connect ssh's stdout to a pipe
--apb (Alan Barrett)
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.