Fix treatment if gitweb URLs.
[buildfarm-server.git] / cgi-bin / show_log.pl
index 75dd2e7c2dcfb4e6bb0243053b29d38ccb49e809..064337d882729f82cbedae043cb68e692753f1ef 100755 (executable)
@@ -103,6 +103,8 @@ if ($system && $logdate)
        $scm = $row->[7];
        $scm ||= 'cvs'; # legacy scripts
        $scmurl = $row->[8];
+       $scmurl = 'http://git.postgresql.org/gitweb?p=postgresql.git;a=commit;h=' 
+           if ($scmurl eq 'http://git.postgresql.org/git/postgresql.git');
        $log_file_names =~ s/^\{(.*)\}$/$1/;
        @log_file_names=split(',',$log_file_names)
            if $log_file_names;