diff --git a/jimsite/assets.py b/jimsite/assets.py index 70f13dd..00644b8 100644 --- a/jimsite/assets.py +++ b/jimsite/assets.py @@ -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.