From: Jakub Narebski Date: Sun, 7 Jan 2007 01:52:24 +0000 (+0100) Subject: gitweb: Fix error in "rename to"/"copy to" git diff header output X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/0827180aff4754753e30f768b7c26f5237575a8980847ecd09e4899f3e9c1f9e?ds=sidebyside gitweb: Fix error in "rename to"/"copy to" git diff header output Fix error in git_patchset_body subroutine, which caused "rename to"/"copy to" line in extended diff header to be displayed incorrectly. While at it, fix align. Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index 7d54919..9d135b7 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -2480,11 +2480,11 @@ sub git_patchset_body { # match if ($patch_line =~ s!^((copy|rename) from ).*$!$1! && $from{'href'}) { $patch_line .= $cgi->a({-href=>$from{'href'}, -class=>"path"}, - esc_path($from{'file'})); + esc_path($from{'file'})); } if ($patch_line =~ s!^((copy|rename) to ).*$!$1! && $to{'href'}) { - $patch_line = $cgi->a({-href=>$to{'href'}, -class=>"path"}, - esc_path($to{'file'})); + $patch_line .= $cgi->a({-href=>$to{'href'}, -class=>"path"}, + esc_path($to{'file'})); } # match if ($patch_line =~ m/\s(\d{6})$/) {