summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-01-10 20:31:53 +0100
committerGuido Günther <agx@sigxcpu.org>2012-01-10 20:32:46 +0100
commit2d84986794d7edaaaca53d3e24390429a1bd327b (patch)
tree1357e982fbacb49be4b91648eb4bce2c69827ab6
parentb956ebfc138422aecb0e0dec0a603c3b8316a12e (diff)
downloadgit-buildpackage-2d84986794d7edaaaca53d3e24390429a1bd327b.tar.gz
git-buildpackage-2d84986794d7edaaaca53d3e24390429a1bd327b.tar.bz2
git-buildpackage-2d84986794d7edaaaca53d3e24390429a1bd327b.zip
gbp-post-tag-push: Add --verbose option
to ease debugging
-rwxr-xr-xexamples/gbp-posttag-push8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/gbp-posttag-push b/examples/gbp-posttag-push
index 521d2356..12039835 100755
--- a/examples/gbp-posttag-push
+++ b/examples/gbp-posttag-push
@@ -16,16 +16,21 @@
#
# Options:
# -d: dry-run
+# -u: push upstream branch too, if not on remote already
+# --verbose: verbose command output
+
import ConfigParser
import os
import subprocess
import sys
+import gbp.log
from gbp.config import GbpOptionParser
from gbp.deb.git import DebianGitRepository
+
class Env(object):
pass
@@ -92,9 +97,12 @@ def main(argv):
dest="upstream_branch")
parser.add_config_file_option(option_name="upstream-tag",
dest="upstream_tag")
+ parser.add_option("--verbose", action="store_true", dest="verbose",
+ default=False, help="verbose command execution")
(options, args) = parser.parse_args()
+ gbp.log.setup(False, options.verbose)
repo = DebianGitRepository('.')
if options.dryrun: