Skip to content

Commit

Permalink
Don't mess with backslashes in GIT_SSH on Windows. Fixes #1008 (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer authored Sep 1, 2022
1 parent 603fd0b commit 7173c6e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dulwich/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1619,7 +1619,8 @@ def run_command(

if ssh_command:
import shlex
args = shlex.split(ssh_command) + ["-x"]
args = shlex.split(
ssh_command, posix=(sys.platform != 'win32')) + ["-x"]
else:
args = ["ssh", "-x"]

Expand Down Expand Up @@ -1661,7 +1662,8 @@ def run_command(

if ssh_command:
import shlex
args = shlex.split(ssh_command) + ["-ssh"]
args = shlex.split(
ssh_command, posix=(sys.platform != 'win32')) + ["-ssh"]
elif sys.platform == "win32":
args = ["plink.exe", "-ssh"]
else:
Expand Down

0 comments on commit 7173c6e

Please sign in to comment.