Correct plink -batch option
When GIT_SSH is set to use plink, the correct option name is "-batch" and not "--batch". This was a typo introduced when we added support for plink via GIT_SSH. Change-Id: I391660e38f5d208bba11e3f2a8f25922de2af878 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
f5434c2a86
commit
8efbd378e1
|
@ -309,7 +309,7 @@ void exec(String commandName) throws TransportException {
|
|||
List<String> args = new ArrayList<String>();
|
||||
args.add(ssh);
|
||||
if (putty)
|
||||
args.add("--batch");
|
||||
args.add("-batch");
|
||||
if (0 < getURI().getPort()) {
|
||||
args.add(putty ? "-P" : "-p");
|
||||
args.add(String.valueOf(getURI().getPort()));
|
||||
|
|
Loading…
Reference in New Issue