X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/8e9dc4ae48f7d6cf89c49156401a9dbb822302ffaded50ab4e091d2d67e86abe..95e4aa493435bbd4cd22b7e8017da9b98857356be89e6905852397497a83392a:/gitweb.cgi diff --git a/gitweb.cgi b/gitweb.cgi index e9a9a9a..e5dd082 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -488,7 +488,7 @@ sub git_read_commit { $co{'comment'} = \@commit_lines; foreach my $title (@commit_lines) { if ($title ne "") { - $co{'title'} = chop_str($title, 80); + $co{'title'} = chop_str($title, 80, 5); # remove leading stuff of merges to make the interesting part visible if (length($title) > 50) { $title =~ s/^Automatic //; @@ -506,7 +506,7 @@ sub git_read_commit { $title =~ s/\/pub\/scm//; } } - $co{'title_short'} = chop_str($title, 50); + $co{'title_short'} = chop_str($title, 50, 5); last; } }