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>tags/v0.10.1
@@ -308,7 +308,7 @@ public class TransportGitSsh extends SshTransport implements PackTransport { | |||
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"); |