aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/cmdutil.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-07-19 15:26:48 -0400
committerW. Trevor King <wking@drexel.edu>2009-07-19 15:26:48 -0400
commit2f2841356a80294b601f67e6676266d88b3ab971 (patch)
tree573942a8c251eb52565e7567f295a97d0d472e15 /libbe/cmdutil.py
parent9c956487a7d10f4b52ba4aeaceff35e90d027130 (diff)
parenta6d5f2891dc353ebe5d9d8598790a6674c174eec (diff)
downloadbugseverywhere-2f2841356a80294b601f67e6676266d88b3ab971.tar.gz
Merged "be commit --allow-empty from be.wtk-rr"
Diffstat (limited to 'libbe/cmdutil.py')
-rw-r--r--libbe/cmdutil.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/libbe/cmdutil.py b/libbe/cmdutil.py
index 8499633..548c255 100644
--- a/libbe/cmdutil.py
+++ b/libbe/cmdutil.py
@@ -73,9 +73,11 @@ def get_command(command_name):
def execute(cmd, args, manipulate_encodings=True):
enc = encoding.get_encoding()
cmd = get_command(cmd)
- cmd.execute([a.decode(enc) for a in args],
- manipulate_encodings=manipulate_encodings)
- return 0
+ ret = cmd.execute([a.decode(enc) for a in args],
+ manipulate_encodings=manipulate_encodings)
+ if ret == None:
+ ret = 0
+ return ret
def help(cmd=None, parser=None):
if cmd != None: