]> asedeno.scripts.mit.edu Git - git.git/commitdiff
Fix: Support for the standard mime.types map in gitweb
authorJakub Narebski <jnareb@gmail.com>
Tue, 20 Jun 2006 06:19:31 +0000 (06:19 +0000)
committerJunio 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

index d7da6368ce15c5461bd75498cae5db34fec5d0dc..78e6dd03462c8836743f3879c1d1832d5e9931e9 100755 (executable)
@@ -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');