From 0da9db7fcf530bc16a94b04a586f0ff8a882d330 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 28 2015 13:10:10 +0000 Subject: Prefix the temp folder so that we know where they are from --- 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')