GitWeb config: Delete temporary config on exit

GitWeb config file remains undeleted in temporary directory on Gerrit
exit.

Call deleteOnExit() for this temporary file.

Change-Id: Ib62579b36cfe73bca0fa1f44383e6a613609cb45
This commit is contained in:
Jiří Engelthaler 2015-05-09 22:47:39 +02:00 committed by David Pursehouse
parent 5409315271
commit 5e2783db1b
1 changed files with 2 additions and 0 deletions

View File

@ -160,6 +160,8 @@ class GitWebServlet extends HttpServlet {
myconf.setWritable(true, true /* owner only */);
myconf.setReadable(true, true /* owner only */);
myconf.deleteOnExit();
_env.set("GIT_DIR", ".");
_env.set("GITWEB_CONFIG", myconf.getAbsolutePath());