Browse Source

fix leading whitespace in commit text

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
maint
Kay Sievers 19 years ago
parent
commit
c2488d064b
  1. 2
      gitweb.cgi

2
gitweb.cgi

@ -531,6 +531,7 @@ sub git_read_commit {
}; };


foreach my $title (@commit_lines) { foreach my $title (@commit_lines) {
$title =~ s/^ //;
if ($title ne "") { if ($title ne "") {
$co{'title'} = chop_str($title, 80, 5); $co{'title'} = chop_str($title, 80, 5);
# remove leading stuff of merges to make the interesting part visible # remove leading stuff of merges to make the interesting part visible
@ -912,6 +913,7 @@ sub read_info_ref {
# c39ae07f393806ccf406ef966e9a15afc43cc36a refs/tags/v2.6.11^{} # c39ae07f393806ccf406ef966e9a15afc43cc36a refs/tags/v2.6.11^{}
open my $fd, "$projectroot/$project/info/refs" or return; open my $fd, "$projectroot/$project/info/refs" or return;
while (my $line = <$fd>) { while (my $line = <$fd>) {
chomp($line);
if ($line =~ m/^([0-9a-fA-F]{40})\t.*$type\/([^\^]+)/) { if ($line =~ m/^([0-9a-fA-F]{40})\t.*$type\/([^\^]+)/) {
if (defined $refs{$1}) { if (defined $refs{$1}) {
$refs{$1} .= " / $2"; $refs{$1} .= " / $2";

Loading…
Cancel
Save