]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.cgi
gitweb.cgi: Create $git_temp if it doesn't exist
[Gitweb] / gitweb.cgi
index dab419f28b74b6ddc658772a2a718e9fedc252c03aac983060f243ea79046061..78d89fae7c4a81504244ca7aaeab0278ffee8fd1e72e196f73645187a37da72c 100755 (executable)
@@ -39,6 +39,9 @@ if ($git_version =~ m/git version (.*)$/) {
 
 # location for temporary files needed for diffs
 our $git_temp = "/tmp/gitweb";
 
 # location for temporary files needed for diffs
 our $git_temp = "/tmp/gitweb";
+if (! -d $git_temp) {
+    mkdir($git_temp, 0700) || die_error("Couldn't mkdir $git_temp");
+}
 
 # target of the home link on top of all pages
 our $home_link = $my_uri;
 
 # target of the home link on top of all pages
 our $home_link = $my_uri;
This page took 0.162518 seconds and 4 git commands to generate.