Fixed git checkout bug

This commit is contained in:
Jim Shepich III 2026-02-03 01:16:32 -05:00
parent 643c10303d
commit a0390b9591

View File

@ -12,7 +12,7 @@ def pull_git_repo(repo: GitRepo, build_cache: str) -> None:
# If a branch is specified, check out to it. # If a branch is specified, check out to it.
if repo.branch is not None: if repo.branch is not None:
run(f"git checkout {repo.branch}") run(f"git -C {build_cache} checkout {repo.branch}")
run(f"git -C {build_cache} pull {repo.remote}{' '+repo.branch if repo.branch else ''}") run(f"git -C {build_cache} pull {repo.remote}{' '+repo.branch if repo.branch else ''}")
# If the build cache is empty, clone the repo into it. # If the build cache is empty, clone the repo into it.