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:
parent
8efbd378e1
commit
86847ee322
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue