Compare commits

...

1 Commits

Author SHA1 Message Date
SebastianGode
64afca62c8 Added force push option
All checks were successful
gl/check check status: success (64afca62c80b428710f4cb1cd39601889a6f782c)
gl/gate gate status: success (64afca62c80b428710f4cb1cd39601889a6f782c)
2023-05-24 12:52:33 +02:00

View File

@ -248,7 +248,7 @@ def process_repositories(args, service):
args.commit_description
)
push_args = ["--set-upstream", "origin", branch_name]
if args.branch_force:
if args.force_push:
push_args.append("--force")
repo_to.git.push(*push_args)
if "github" in url_to:
@ -328,6 +328,11 @@ def main():
help=("Whether to overwrite index.rst for service-based-view."
+ "\nCan only be used if --update-sbv is also specified")
)
parser.add_argument(
"--force-push",
action="store_true",
help="Whether to force push the commit"
)
parser.add_argument(
"--commit-description",
default=(