Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitweb.cgi: Create $git_temp if it doesn't exist
author
Luben Tuikov
<ltuikov@yahoo.com>
Mon, 10 Jul 2006 03:07:27 +0000
(20:07 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Mon, 10 Jul 2006 07:21:33 +0000
(
00:21
-0700)
Unless we'd done diffs, $git_temp doesn't exist and then
mime lookups fail. Explicitly create it, if it doesn't
exist already.
Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.cgi
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
8499294
)
diff --git
a/gitweb/gitweb.cgi
b/gitweb/gitweb.cgi
index cce0753e14a5c56adf4fad4984282d044675f42d..2fb2809fbb38b02f751115ad3a0d0d93a5ccd598 100755
(executable)
--- a/
gitweb/gitweb.cgi
+++ b/
gitweb/gitweb.cgi
@@
-39,6
+39,9
@@
if ($git_version =~ m/git version (.*)$/) {
# 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;