summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2006-06-20 06:19:31 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-06-20 09:59:55 (GMT)
commit57bd4d3523efecf60197040cad34154aff4ddf80 (patch)
tree668fc82e55f80d9bd6dcef5784b692c764eaf2a3
parent7b6511a13f9913a7a54e76b18e21c2b2bfae18cf (diff)
downloadgit-57bd4d3523efecf60197040cad34154aff4ddf80.zip
git-57bd4d3523efecf60197040cad34154aff4ddf80.tar.gz
git-57bd4d3523efecf60197040cad34154aff4ddf80.tar.bz2
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>
-rwxr-xr-xgitweb/gitweb.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi
index d7da636..78e6dd0 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');