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 <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Jakub Narebski committed
Jan 7, 2007 at 02:52 UTC
2e1951f6eddfa070916a0e678aa508f73d92aa50
1 file changed
+3
-3
gitweb/gitweb.perl
+3
-3
@@ -2479,11 +2479,11 @@ sub git_patchset_body {
2479
# match <path>
2480
if ($patch_line =~ s!^((copy|rename) from ).*$!$1! && $from{'href'}) {
2481
$patch_line .= $cgi->a({-href=>$from{'href'}, -class=>"path"},
2482
- esc_path($from{'file'}));
2482
+ esc_path($from{'file'}));
2483
}
2484
if ($patch_line =~ s!^((copy|rename) to ).*$!$1! && $to{'href'}) {
2485
- $patch_line = $cgi->a({-href=>$to{'href'}, -class=>"path"},
2486
- esc_path($to{'file'}));
2485
+ $patch_line .= $cgi->a({-href=>$to{'href'}, -class=>"path"},
2486
+ esc_path($to{'file'}));
2487
}
2488
# match <mode>
2489
if ($patch_line =~ m/\s(\d{6})$/) {