fix: incorrect argument
This commit is contained in:
parent
10cf97dee4
commit
14c7fc255b
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue