Skip to content

Commit 63fbc4c

Browse files
committed
Do not check out new branch when loading cached results during runtime
1 parent d5845e8 commit 63fbc4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cadetrdm/repositories.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,9 @@ def copy_data_to_cache(self, branch_name=None, target_folder=None):
13681368
# Ensure that the branch is available locally. If it's only a remote branch, git.archive will fail.
13691369
local_branches = [head.name for head in self.output_repo._git_repo.heads]
13701370
if branch_name not in local_branches:
1371-
self.output_repo.checkout(branch_name)
1371+
self.output_repo._git_repo.create_head(
1372+
branch_name
1373+
)
13721374

13731375
# Create the target folder if it doesn't exist
13741376
if not target_folder.exists():

0 commit comments

Comments
 (0)