Error out rather than hang when plink does not know the host yet
commitb078c82afda34beb2fa33f7227cc3e10ac3db226
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 18 May 2009 12:53:34 +0000 (18 14:53 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 18 May 2009 12:53:34 +0000 (18 14:53 +0200)
treee0d3fe78221e2aeae06b010c7287dc3cc0adf4c3
parentfdffdb2ddbf05442dd2662937e62258991e4b28c
Error out rather than hang when plink does not know the host yet

As reported in msysGit issue 96, plink wants to interact with the user
asking if a host key should be accepted, but this just blocks the
terminal, as plink tries to get the answer from stdin.  However, stdin
is already connected to Git that wants to send input to the remote
command.

Rather than blocking, just call plink with -batch so that it will error
out with an error message.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
connect.c