fix: incorrect argument

This commit is contained in:
Ev357 2025-08-26 22:44:31 +02:00 committed by Gavin John
parent 10cf97dee4
commit 14c7fc255b

View file

@ -51,7 +51,9 @@ def commit_repo(repo: Repo, message: str, path: Path) -> Repo:
try:
# dirs_exist_ok=True because our directory definitely already exists
shutil.copytree(repo_source(repo.name), tmp.name, symlinks=True, dirs_exist_ok=True)
shutil.copytree(
repo_source(repo.name), tmp.name, symlinks=True, dirs_exist_ok=True
)
if os.path.exists(repo_path):
shutil.rmtree(repo_path)
shutil.copytree(tmp.name, repo_path, symlinks=True)