Support GIT_SSH=tortoiseplink

The tortoiseplink command does not understand -batch, even though
it smells like the putty plink command that does use it.  Don't add
-batch if GIT_SSH is tortoiseplink.

Change-Id: I638532a02faa2caf8c39d482094e7ff4f4ec7e78
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce 2010-12-15 10:17:57 -08:00
parent 8efbd378e1
commit 86847ee322
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ void exec(String commandName) throws TransportException {
List<String> args = new ArrayList<String>();
args.add(ssh);
if (putty)
if (putty && !ssh.toLowerCase().contains("tortoiseplink"))
args.add("-batch");
if (0 < getURI().getPort()) {
args.add(putty ? "-P" : "-p");