Skip to content

Commit 0a97dd1

Browse files
committed
Use upstream in tools/maint/create_release.py. NFC
1 parent aa25047 commit 0a97dd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/maint/create_release.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ def main():
5959
branch_name = 'version_' + release_version
6060

6161
# Create a new git branch
62-
subprocess.check_call(['git', 'checkout', '-b', branch_name, 'origin/main'], cwd=root_dir)
62+
subprocess.check_call(['git', 'checkout', '-b', branch_name, 'upstream/main'], cwd=root_dir)
6363

6464
# Create auto-generated changes to the new git branch
6565
subprocess.check_call(['git', 'add', '-u', '.'], cwd=root_dir)
6666
subprocess.check_call(['git', 'commit', '-m', f'Mark {release_version} as released'], cwd=root_dir)
6767
print('New release created in branch: `%s`' % branch_name)
6868

69-
# Push new branch to origin
70-
subprocess.check_call(['git', 'push', 'origin', branch_name], cwd=root_dir)
69+
# Push new branch to upstream
70+
subprocess.check_call(['git', 'push', 'upstream', branch_name], cwd=root_dir)
7171

7272
# TODO(sbc): Maybe create the tag too
7373
return 0

0 commit comments

Comments
 (0)