summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorLibravatar Jakub Narebski <jnareb@gmail.com>2006-06-20 06:19:31 +0000
committerLibravatar Junio C Hamano <junkio@cox.net>2006-06-20 02:59:55 -0700
commit57bd4d3523efecf60197040cad34154aff4ddf80 (patch)
tree668fc82e55f80d9bd6dcef5784b692c764eaf2a3 /gitweb
parentgitweb: add type="text/css" to stylesheet link (diff)
downloadtgif-57bd4d3523efecf60197040cad34154aff4ddf80.tar.xz
Fix: Support for the standard mime.types map in gitweb
Temporary fix: commented out offending line in mimetype_guess. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi
index d7da6368ce..78e6dd0346 100755
--- 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');