@@ -27,7 +27,7 @@ follows:
* `plink` or `putty` - [-P port] [-4] [-6] [username@]host command
-* `tortoiseplink` - [-P port] [-4] [-6] -batch [username@]host command
+* `tortoiseplink` - [-p port] [-4] [-6] [username@]host command
--
+
@@ -1269,9 +1269,6 @@ static void push_ssh_options(struct strvec *args, struct strvec *env,
}
}
- if (variant == VARIANT_TORTOISEPLINK)
- strvec_push(args, "-batch");
-
if (port) {
switch (variant) {
case VARIANT_AUTO:
@@ -1279,11 +1276,11 @@ static void push_ssh_options(struct strvec *args, struct strvec *env,
case VARIANT_SIMPLE:
die(_("ssh variant 'simple' does not support setting port"));
case VARIANT_SSH:
+ case VARIANT_TORTOISEPLINK:
strvec_push(args, "-p");
break;
case VARIANT_PLINK:
case VARIANT_PUTTY:
- case VARIANT_TORTOISEPLINK:
strvec_push(args, "-P");
}
@@ -430,7 +430,7 @@ test_expect_success 'plink.exe is treated specially (as putty)' '
test_expect_success 'tortoiseplink is like putty, with extra arguments' '
copy_ssh_wrapper_as "$TRASH_DIRECTORY/tortoiseplink" &&
git clone "[myhost:123]:src" ssh-bracket-clone-plink-2 &&
- expect_ssh "-batch -P 123" myhost src
+ expect_ssh "-p 123" myhost src
'
test_expect_success 'double quoted plink.exe in GIT_SSH_COMMAND' '
@@ -472,7 +472,7 @@ test_expect_success 'GIT_SSH_VARIANT overrides plink to tortoiseplink' '
copy_ssh_wrapper_as "$TRASH_DIRECTORY/plink" &&
GIT_SSH_VARIANT=tortoiseplink \
git clone "[myhost:123]:src" ssh-bracket-clone-variant-4 &&
- expect_ssh "-batch -P 123" myhost src
+ expect_ssh "-p 123" myhost src
'
test_expect_success 'clean failure on broken quoting' '
"-p" is supported and "--batch" is ignored in TortoisePLink from TortoiseSVN and TortoiseGit since at least March 2015 (and TortoiseCVS is not maintained any more). Therefore, there is no need any more to keep these parameters for ancient versions of tortoiseplink. Signed-off-by: Sven Strickroth <email@cs-ware.de> --- Documentation/config/ssh.txt | 2 +- connect.c | 5 +---- t/t5601-clone.sh | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-)