Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix bug in command line generation with multi-argument commands.

  • Loading branch information...
commit 6c543394f4609549bde7de1268cf441c752c06f0 1 parent 89a9b03
Neil Williams authored

Showing 1 changed file with 7 additions and 4 deletions. Show diff stats Hide diff stats

  1. 11  push/args.py
11  push/args.py
@@ -225,11 +225,14 @@ def build_command_line(config, args):
225 225
     commands = dict(restart="-r",
226 226
                     kill="-k")
227 227
     for command in args.deploy_commands:
228  
-        if len(command) == 2:
229  
-            components.append(commands[command[0]])
230  
-            components.append(command[1])
  228
+        special_command = commands.get(command[0])
  229
+        if special_command:
  230
+            components.append(special_command)
  231
+            command = command[1:]
231 232
         else:
232  
-            components.extend(("-c", command[0]))
  233
+            components.append("-c")
  234
+
  235
+        components.extend(command)
233 236
 
234 237
     for repo, rev in args.revisions:
235 238
         components.extend(("-rev", repo, rev))

0 notes on commit 6c54339

Please sign in to comment.
Something went wrong with that request. Please try again.