Skip to content

Commit cc1927c

Browse files
committed
.
1 parent 635e324 commit cc1927c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

clone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def main(argv):
1313
dev = release is None or not release.split("-")[1].startswith("3")
1414
print("\33[32m", f"info: cloning '{repo}'", f"with release '{release}'..." if not dev else "without any release...", "\33[0m", sep = "", flush = True)
1515
subprocess.run(["git", "clone", f"https://github.com/libsdl-org/{repo}.git", "--recursive"], shell = sdl3.SDL_SYSTEM in ["Windows"])
16-
if not dev: subprocess.run(["git", "checkout", f"tags/{release}"], cwd = repo, shell = sdl3.SDL_SYSTEM in ["Windows"])
16+
if not dev: subprocess.run(["git", "switch", f"tags/{release}"], cwd = repo, shell = sdl3.SDL_SYSTEM in ["Windows"])
1717

1818
else:
1919
print("\33[35m", f"warning: passing '{repo}' because it already exists...", "\33[0m", sep = "", flush = True)

0 commit comments

Comments
 (0)