fix(release_updater): push: if branch is specified, remote must be specified too (#7863)

This commit is contained in:
Liam Howatt
2025-02-27 09:11:14 -05:00
committed by GitHub
parent 8d84f6a699
commit 97e0c9c0c2

View File

@@ -200,8 +200,8 @@ def main():
print(LOG, "this is a dry run so nothing will be pushed")
else:
subprocess.check_call(("git", "-C", port_clone_tmpdir, "push",
*(("-u", "origin") if port_does_not_have_the_branch else ()),
fmt_release(port_branch),
*(("-u",) if port_does_not_have_the_branch else ()),
"origin", fmt_release(port_branch),
))
print(LOG, "the changes were pushed.")
else: