Browse Source

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>
tags/v0.10.1
Shawn O. Pearce 13 years ago
parent
commit
86847ee322

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportGitSsh.java View File

@@ -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");

Loading…
Cancel
Save