diff options
author | 2005-12-07 16:32:51 +0100 | |
---|---|---|
committer | 2005-12-07 16:32:51 +0100 | |
commit | c2488d064bb5225e8d816f9ca8e8ee904bf6eb92 (patch) | |
tree | 2f7754f8c1bb056c0786111952a255064f3e8e7e /gitweb.cgi | |
parent | more tags (diff) | |
download | tgif-c2488d064bb5225e8d816f9ca8e8ee904bf6eb92.tar.xz |
fix leading whitespace in commit text
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'gitweb.cgi')
-rwxr-xr-x | gitweb.cgi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gitweb.cgi b/gitweb.cgi index 1f5a409bf1..1c93192fc3 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -531,6 +531,7 @@ sub git_read_commit { }; foreach my $title (@commit_lines) { + $title =~ s/^ //; if ($title ne "") { $co{'title'} = chop_str($title, 80, 5); # 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^{} open my $fd, "$projectroot/$project/info/refs" or return; while (my $line = <$fd>) { + chomp($line); if ($line =~ m/^([0-9a-fA-F]{40})\t.*$type\/([^\^]+)/) { if (defined $refs{$1}) { $refs{$1} .= " / $2"; @@ -2056,7 +2058,7 @@ sub git_commitdiff_plain { "\n"; foreach my $line (@$comment) {; - print " $line\n"; + print "$line\n"; } print "---\n\n"; |