commit 20d53c732fce08641a120c1b7d68a751757f4600 from: Jelmer Vernooij date: Sun Jun 05 23:33:08 2022 UTC Delay shlex import. commit - 910e5f73b4d82fc8c000923a7d8daff9d500e1bb commit + 20d53c732fce08641a120c1b7d68a751757f4600 blob - 10defb0a04ced81afcdc71058669aa7331ba6488 blob + 75c0172028b1033902908ff8f993c50a4915ffff --- dulwich/client.py +++ dulwich/client.py @@ -43,7 +43,6 @@ from io import BytesIO, BufferedReader import logging import os import select -import shlex import socket import subprocess import sys @@ -1613,6 +1612,7 @@ class SubprocessSSHVendor(SSHVendor): ) if ssh_command: + import shlex args = shlex.split(ssh_command) + ["-x"] else: args = ["ssh", "-x"] @@ -1654,6 +1654,7 @@ class PLinkSSHVendor(SSHVendor): ): if ssh_command: + import shlex args = shlex.split(ssh_command) + ["-ssh"] elif sys.platform == "win32": args = ["plink.exe", "-ssh"]