From: Andrew Dunstan Date: Wed, 12 Jan 2011 18:40:11 +0000 (-0800) Subject: Only use/replace commit string at the beginning of the log message. X-Git-Url: https://git.exim.org/buildfarm-server.git/commitdiff_plain/855eeb27a1af49fea7b7606fcf384d2269271d2f Only use/replace commit string at the beginning of the log message. --- diff --git a/templates/log.tt b/templates/log.tt index c5d275a..43b89c4 100644 --- a/templates/log.tt +++ b/templates/log.tt @@ -26,8 +26,8 @@ See accompanying License file for license details pagebutton = 'none' %] [%- BLOCK gitlog ; - commitref = clog.replace('commit ([0-9A-Fa-f]+)(.|\n)*','$1'); - logtail = clog.replace('commit ([0-9A-Fa-f]+)',''); + commitref = clog.replace('^commit ([0-9A-Fa-f]+)(.|\n)*','$1'); + logtail = clog.replace('^commit ([0-9A-Fa-f]+)',''); logtail = logtail.replace('\n',' '); %][% commitref %][% logtail | html %]