Skip to content

Commit ef36fbd

Browse files
EpicWinkwebknjaz
andauthored
Switch to 'git switch' for switching branches
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
1 parent 9edb7a5 commit ef36fbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,14 @@ def release_build(session):
182182

183183
# Check out the Git tag, if provided.
184184
if checkout:
185-
session.run("git", "checkout", "-q", release_version, external=True)
185+
session.run("git", "switch", "-q", release_version, external=True)
186186

187187
# Build the distribution.
188188
_build_and_check(session, release_version)
189189

190190
# Get back out into main, if we checked out before.
191191
if checkout:
192-
session.run("git", "checkout", "-q", "main", external=True)
192+
session.run("git", "switch", "-q", "main", external=True)
193193

194194

195195
def _build_and_check(session, release_version, remove=False):

0 commit comments

Comments
 (0)