From a0390b959115344aa857fa97dfc72153cad54b33 Mon Sep 17 00:00:00 2001 From: Jim Shepich III Date: Tue, 3 Feb 2026 01:16:32 -0500 Subject: [PATCH] Fixed git checkout bug --- jimsite/assets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.