Fixed git checkout bug
This commit is contained in:
parent
643c10303d
commit
a0390b9591
@ -12,7 +12,7 @@ def pull_git_repo(repo: GitRepo, build_cache: str) -> None:
|
||||
|
||||
# If a branch is specified, check out to it.
|
||||
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 ''}")
|
||||
|
||||
# If the build cache is empty, clone the repo into it.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user