Skip to content

Commit

Permalink
Don't delete tempdir
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Jun 3, 2024
1 parent 27e7c79 commit 43f7cbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/tool_shed/util/repository_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ def create_repository(
create_repository_admin_role(app, repository)
# Create a temporary repo_path on disk.
with tempfile.TemporaryDirectory(
dir=app.config.file_path, prefix="f{repository.user.username}-{repository.name}"
dir=app.config.file_path,
prefix="f{repository.user.username}-{repository.name}",
delete=False,
) as repository_path:
# Create the local repository.
init_repository(repo_path=repository_path)
Expand Down

0 comments on commit 43f7cbf

Please sign in to comment.