fix: type error in copytree
This commit is contained in:
parent
91ff8049de
commit
10cf97dee4
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ def commit_repo(repo: Repo, message: str, path: Path) -> Repo:
|
|||
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, repo_path, symlinks=True)
|
||||
shutil.copytree(tmp.name, repo_path, symlinks=True)
|
||||
tmp = None
|
||||
finally:
|
||||
if tmp is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue