diff --git a/pagure/internal/__init__.py b/pagure/internal/__init__.py index 8101d03..d427a84 100644 --- a/pagure/internal/__init__.py +++ b/pagure/internal/__init__.py @@ -178,6 +178,8 @@ def mergeable_request_pull(): parentpath = pagure.get_repo_path(request.project) # Clone the original repo into a temp folder + tempfile.tempdir = pagure.APP.config.get( + 'TMP_FOLDER', tempfile.gettempdir()) newpath = tempfile.mkdtemp(prefix='pagure-pr-check') new_repo = pygit2.clone_repository(parentpath, newpath)