Revision 938a4739

b/devflow/autopkg.py
145 145
                      default=None,
146 146
                      help="Use this debian branch, instead of"
147 147
                           "auto-discovering the debian branch to use")
148
    parser.add_option("--push-back",
149
                      dest="push_back",
150
                      default=False,
151
                      action="store_true",
152
                      help="Automatically push branches and tags to repo.")
148 153

  
149 154
    (options, args) = parser.parse_args()
150 155

  
......
342 347
        for remote in ['origin', 'original_origin']:
343 348
            objects = [debian_branch, branch_tag, debian_branch_tag]
344 349
            print_green("git push %s %s" % (remote, " ".join(objects)))
350
        if options.push_back:
351
            objects = [debian_branch, branch_tag, debian_branch_tag]
352
            repo.git.push("origin", *objects)
353
            print_green("Automatically updated origin repo.")
345 354

  
346 355

  
347 356
def create_temp_directory(suffix):

Also available in: Unified diff