Skip to content

Commit 3463fff

Browse files
Merge remote-tracking branch 'backblaze/master' into pdm
2 parents 82aec06 + 92ef2c8 commit 3463fff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

noxfile.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
os.environ["PDM_IGNORE_SAVED_PYTHON"] = "1"
2525
os.environ["PDM_NO_LOCK"] = "1"
2626

27+
UPSTREAM_REPO_URL = '[email protected]:Backblaze/B2_Command_Line_Tool.git'
28+
2729
CI = os.environ.get('CI') is not None
2830
CD = CI and (os.environ.get('CD') is not None)
2931
INSTALL_SDK_FROM = os.environ.get('INSTALL_SDK_FROM')
@@ -650,10 +652,11 @@ def make_release_commit(session):
650652

651653
session.log(
652654
f'CHANGELOG updated, changes ready to commit and push\n'
655+
f' git remote add upstream {UPSTREAM_REPO_URL!r} 2>/dev/null || git remote get-url upstream\n'
653656
f' git commit -m "release {version}"\n'
654657
f' git tag v{version}\n'
655-
f' git push {{UPSTREAM_NAME}} v{version}\n'
656-
f' git push {{UPSTREAM_NAME}} {current_branch}'
658+
f' git push upstream v{version}\n'
659+
f' git push upstream {current_branch}'
657660
)
658661

659662

0 commit comments

Comments
 (0)