You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
subprocess.run(["git", "config", "--global", "advice.detachedHead", "false"], shell = sdl3.SDL_SYSTEM in ["Windows"])
for repo, release in asyncio.run(sdl3.SDL_GET_LATEST_RELEASES()).items():
if repo not in os.listdir():
sdl3.SDL_LOGGER.Log(sdl3.SDL_LOGGER.Info, f"Cloning '{repo}' without any release..." if (dev := release is None or not release.split("-")[1].startswith("3")) else f"Cloning '{repo}' with release '{release}'...")
subprocess.run(["git", "clone"] + ([] if "old" in os.listdir() else ["--recursive"]) + ([] if dev else ["--branch", release]) + [f"https://github.com/libsdl-org/{repo}.git"], shell = sdl3.SDL_SYSTEM in ["Windows"])
else:
sdl3.SDL_LOGGER.Log(sdl3.SDL_LOGGER.Warning, f"Skipping '{repo}' because it already exists...")