From: Andrew Dunstan Date: Thu, 17 Mar 2011 14:55:49 +0000 (-0700) Subject: Fix treatment if gitweb URLs. X-Git-Url: https://git.exim.org/buildfarm-server.git/commitdiff_plain/a312078b8fb1408bf1f536505a2be19fa5da1f13 Fix treatment if gitweb URLs. --- diff --git a/cgi-bin/show_log.pl b/cgi-bin/show_log.pl index 75dd2e7..064337d 100755 --- a/cgi-bin/show_log.pl +++ b/cgi-bin/show_log.pl @@ -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; diff --git a/templates/log.tt b/templates/log.tt index c78ebaa..29d51e8 100644 --- a/templates/log.tt +++ b/templates/log.tt @@ -104,8 +104,9 @@ See accompanying License file for license details [% IF changed_this_run_logs.0 %]
Git log
+[% IF last_build_git_ref && git_head_ref %]
 Change Set for this build
-
+[% END %]
 [% FOREACH clog IN changed_this_run_logs ; PROCESS gitlog -%]
 [%- END -%]