Fix handling of commands with arguments in paramiko SSH client.
authorJelmer Vernooij <jelmer@jelmer.uk>
Sun, 6 Sep 2015 22:09:05 +0000 (22:09 +0000)
committerJelmer Vernooij <jelmer@jelmer.uk>
Sun, 6 Sep 2015 22:09:05 +0000 (22:09 +0000)
NEWS
dulwich/client.py

diff --git a/NEWS b/NEWS
index a9de48bc6244c13de78dbbf75700a5c1438f9025..6cc0cf1259c52cd0d924a108852d6923ef9c3a36 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,9 @@
   * Allow arguments in local client binary path overrides.
     (Jelmer Vernooij)
 
+  * Fix handling of commands with arguments in paramiko SSH
+    client. (Andreas Klöckner, Jelmer Vernooij, #363)
+
 0.10.1  2015-03-25
 
  BUG FIXES
index ada7d2c60c85bf2a7d789d0ebe6caf099d054318..dae14ef7ae95e89e6c979df2d15dee4bc96cdc6b 100644 (file)
@@ -956,7 +956,7 @@ else:
             channel = client.get_transport().open_session()
 
             # Run commands
-            channel.exec_command(*command)
+            channel.exec_command(subprocess.list2cmdline(command))
 
             return ParamikoWrapper(
                 client, channel, progress_stderr=progress_stderr)