aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/command_wrappers.py
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2007-11-04 15:28:51 +0100
committerGuido Guenther <agx@sigxcpu.org>2007-11-05 19:55:27 +0100
commitd17637ea18415c56b0d91cfdacd1f0f451154beb (patch)
tree6c92e8597582359a8a5c07ea47466882c4ab7214 /gbp/command_wrappers.py
parent55884f09968c469040b6e4fa8c4df6bb086a8658 (diff)
don't print a commit summary when importing into empty repos (addresses parts of #449075)
Diffstat (limited to 'gbp/command_wrappers.py')
-rw-r--r--gbp/command_wrappers.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gbp/command_wrappers.py b/gbp/command_wrappers.py
index 8a93ff4f..23086605 100644
--- a/gbp/command_wrappers.py
+++ b/gbp/command_wrappers.py
@@ -181,12 +181,13 @@ class GitRm(GitCommand):
class GitCommitAll(GitCommand):
"""Wrap git-commit to commit all changes"""
- def __init__(self):
- GitCommand.__init__(self, 'commit', ['-a'])
+ def __init__(self, verbose=False):
+ args = ['-a'] + [ ['-q'], [] ][verbose]
+ GitCommand.__init__(self, cmd='commit', args=args)
def __call__(self, msg=''):
args = [ [], ['-m', msg] ][len(msg) > 0]
- self.run_error = "Couldn't commit -a %s" % " ".join(args)
+ self.run_error = "Couldn't %s %s" % (self.cmd, " ".join(self.args + args))
GitCommand.__call__(self, args)