incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [1/3] git commit: [#6191] ticket:334 Fix args splitting
Date Thu, 09 May 2013 17:24:18 GMT
Updated Branches:
  refs/heads/master 0e9e79125 -> 5d046129c


[#6191] ticket:334 Fix args splitting


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/5d046129
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/5d046129
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/5d046129

Branch: refs/heads/master
Commit: 5d046129c5efc6f2d44a165e29badcd27f1464f4
Parents: aa36dbf
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Mon May 6 13:27:59 2013 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu May 9 17:23:11 2013 +0000

----------------------------------------------------------------------
 Allura/allura/command/base.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/5d046129/Allura/allura/command/base.py
----------------------------------------------------------------------
diff --git a/Allura/allura/command/base.py b/Allura/allura/command/base.py
index 1ff7d03..d433643 100644
--- a/Allura/allura/command/base.py
+++ b/Allura/allura/command/base.py
@@ -18,6 +18,7 @@
 import os
 import sys
 import logging
+import shlex
 from multiprocessing import Process
 from pkg_resources import iter_entry_points
 
@@ -39,7 +40,7 @@ def run_command(command, args):
     mod, cls = command.rsplit('.', 1)
     mod = __import__(mod, fromlist=[str(cls)])
     command = getattr(mod, cls)
-    return command(command.__name__).run(args.split())
+    return command(command.__name__).run(shlex.split(args or ''))
 
 class EmptyClass(object): pass
 


Mime
View raw message