- loglines = clog.split('\n');
- firstline = loglines.shift;
- commitref = firstline.replace('commit ([0-9A-Fa-f]+)','$1');
-%]
-commit <a href="[% giturl ; commitref %]">[% commitref %]</a>
-[% loglines.join("\n") | html %]
+ commitref = clog.replace('^commit ([0-9A-Fa-f]+)(.|\n)*','$1');
+ logtail = clog.replace('^commit ([0-9A-Fa-f]+)','');
+ logtail = logtail.replace('\n',' ');