Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Fix: Support for the standard mime.types map in gitweb
author
Jakub Narebski
<jnareb@gmail.com>
Tue, 20 Jun 2006 06:19:31 +0000
(06:19 +0000)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 20 Jun 2006 09:59:55 +0000
(
02:59
-0700)
Temporary fix: commented out offending line in mimetype_guess.
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.cgi
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
7b6511a
)
diff --git
a/gitweb/gitweb.cgi
b/gitweb/gitweb.cgi
index d7da6368ce15c5461bd75498cae5db34fec5d0dc..78e6dd03462c8836743f3879c1d1832d5e9931e9 100755
(executable)
--- a/
gitweb/gitweb.cgi
+++ b/
gitweb/gitweb.cgi
@@
-1518,7
+1518,7
@@
sub mimetype_guess {
if ($mimetypes_file) {
my $file = $mimetypes_file;
- $file =~ m#^/# or $file = "$projectroot/$path/$file";
+
#
$file =~ m#^/# or $file = "$projectroot/$path/$file";
$mime = mimetype_guess_file($filename, $file);
}
$mime ||= mimetype_guess_file($filename, '/etc/mime.types');