summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-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: