fix leading whitespace in commit text
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Kay Sievers committed
Dec 7, 2005 at 16:32 UTC
c2488d064bb5225e8d816f9ca8e8ee904bf6eb92
1 file changed
+3
-1
gitweb.cgi
+3
-1
@@ -531,6 +531,7 @@ sub git_read_commit {
531
};
532
533
foreach my $title (@commit_lines) {
534
+ $title =~ s/^ //;
535
if ($title ne "") {
536
$co{'title'} = chop_str($title, 80, 5);
537
# remove leading stuff of merges to make the interesting part visible
@@ -912,6 +913,7 @@ sub read_info_ref {
913
# c39ae07f393806ccf406ef966e9a15afc43cc36a refs/tags/v2.6.11^{}
914
open my $fd, "$projectroot/$project/info/refs" or return;
915
while (my $line = <$fd>) {
916
+ chomp($line);
917
if ($line =~ m/^([0-9a-fA-F]{40})\t.*$type\/([^\^]+)/) {
918
if (defined $refs{$1}) {
919
$refs{$1} .= " / $2";
@@ -2056,7 +2058,7 @@ sub git_commitdiff_plain {
2058
"\n";
2059
2060
foreach my $line (@$comment) {;
2059
- print " $line\n";
2061
+ print "$line\n";
2062
}
2063
print "---\n\n";
2064