Commit 938a4739 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Add option to automatically push tags and branches

parent 8f939e17
...@@ -145,6 +145,11 @@ def main(): ...@@ -145,6 +145,11 @@ def main():
default=None, default=None,
help="Use this debian branch, instead of" help="Use this debian branch, instead of"
"auto-discovering the debian branch to use") "auto-discovering the debian branch to use")
help="Automatically push branches and tags to repo.")
(options, args) = parser.parse_args() (options, args) = parser.parse_args()
...@@ -342,6 +347,10 @@ def main(): ...@@ -342,6 +347,10 @@ def main():
for remote in ['origin', 'original_origin']: for remote in ['origin', 'original_origin']:
objects = [debian_branch, branch_tag, debian_branch_tag] objects = [debian_branch, branch_tag, debian_branch_tag]
print_green("git push %s %s" % (remote, " ".join(objects))) print_green("git push %s %s" % (remote, " ".join(objects)))
if options.push_back:
objects = [debian_branch, branch_tag, debian_branch_tag]
repo.git.push("origin", *objects)
print_green("Automatically updated origin repo.")
def create_temp_directory(suffix): def create_temp_directory(suffix):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment