This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

  • Loading branch information...
spladug committed Sep 7, 2012
1 parent 89a9b03 commit 6c543394f4609549bde7de1268cf441c752c06f0
Showing with 7 additions and 4 deletions.
  1. +7 −4 push/args.py
View
@@ -225,11 +225,14 @@ def build_command_line(config, args):
commands = dict(restart="-r",
kill="-k")
for command in args.deploy_commands:
- if len(command) == 2:
- components.append(commands[command[0]])
- components.append(command[1])
+ special_command = commands.get(command[0])
+ if special_command:
+ components.append(special_command)
+ command = command[1:]
else:
- components.extend(("-c", command[0]))
+ components.append("-c")
+
+ components.extend(command)
for repo, rev in args.revisions:
components.extend(("-rev", repo, rev))

0 comments on commit 6c54339

Please sign in to comment.