diff --git a/pagure/lib/git.py b/pagure/lib/git.py index aa53749..f247962 100644 --- a/pagure/lib/git.py +++ b/pagure/lib/git.py @@ -212,7 +212,7 @@ def clean_git(obj, repo, repofolder, objtype='ticket'): repopath = os.path.join(repofolder, repo.path) # Clone the repo into a temp folder - newpath = tempfile.mkdtemp() + newpath = tempfile.mkdtemp(prefix='pagure-') new_repo = pygit2.clone_repository(repopath, newpath) file_path = os.path.join(newpath, obj.uid) @@ -549,7 +549,7 @@ def add_file_to_git(repo, issue, ticketfolder, user, filename, filestream): repopath = os.path.join(ticketfolder, repo.path) # Clone the repo into a temp folder - newpath = tempfile.mkdtemp() + newpath = tempfile.mkdtemp(prefix='pagure-') new_repo = pygit2.clone_repository(repopath, newpath) folder_path = os.path.join(newpath, 'files')