Skip to content

Commit

Permalink
fix pushing remote branch when it doesn't exist yet
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsergio committed Nov 18, 2024
1 parent fd356af commit 88578ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def create_pr(filename, remote, repo, tagname):
run_command(f"git checkout -B {tmp_branch}")
run_command(f"git add {filename}")
run_command(f"git commit -m \"{commit_msg}\"")
run_command(f"git push {remote}")
run_command(f"git push {remote} {tmp_branch}")
run_command(f"git branch --set-upstream-to={remote}/{tmp_branch}")
run_command(f"gh pr create --title \"{commit_msg}\" -R {repo} -B master -b \"bump\"")

Expand Down

0 comments on commit 88578ec

Please sign in to comment.