Move the temp folder of pagure to fix cloning

This commit is contained in:
Pierre-Yves Chibon 2015-05-18 14:09:51 +02:00
parent eaa4268811
commit af34ed04a1

View file

@ -11,6 +11,12 @@ import os
## Set the environment variable pointing to the configuration file
os.environ['PAGURE_CONFIG'] = '/etc/pagure/pagure.cfg'
## Set the environment variable if the tmp folder needs to be moved
## Is necessary to work around bug in libgit2:
## refs: https://github.com/libgit2/libgit2/issues/2965
## and https://github.com/libgit2/libgit2/issues/2797
os.environ['TEMP'] = '/var/tmp/'
## The following is only needed if you did not install pagure
## as a python module (for example if you run it from a git clone).
#import sys