@matheusbsbs / matheus-bagliano / commits / 903acca753
Fork 0

gitweb: Remove creating directory for temporary files

Remove $git_temp variable which held location for temporary files needed by git_diff_print, and removed creating $git_temp directory. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Jakub Narebski committed Aug 25, 2006 at 21:35 UTC 903acca75329841996bbf0c3a32a7cfeb3ae0d0f
1 file changed -6
gitweb/gitweb.perl
-6
@@ -31,9 +31,6 @@ our $GIT = "++GIT_BINDIR++/git";
31 #our $projectroot = "/pub/scm";
32 our $projectroot = "++GITWEB_PROJECTROOT++";
33
34 -# location for temporary files needed for diffs
35 -our $git_temp = "/tmp/gitweb";
36 -
34 # target of the home link on top of all pages
35 our $home_link = $my_uri || "/";
36
@@ -144,9 +141,6 @@ require $GITWEB_CONFIG if -e $GITWEB_CONFIG;
141 our $git_version = qx($GIT --version) =~ m/git version (.*)$/ ? $1 : "unknown";
142
143 $projects_list ||= $projectroot;
147 -if (! -d $git_temp) {
148 - mkdir($git_temp, 0700) || die_error(undef, "Couldn't mkdir $git_temp");
149 -}
144
145 # ======================================================================
146 # input validation and dispatch