X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/f1b469904546cd878cc1b9129fc0ee0be0e9facbd00cfd4512a1b4abffc68e5a..71ed299c857d269044a89a950c36fc5146dc0c470b834eb67f908a3c8c4c8b6b:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index 3115298..43bf744 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -2723,8 +2723,9 @@ sub git_patchset_body { delete $from{'href'}; } } + $to{'file'} = $diffinfo->{'to_file'} || $diffinfo->{'file'}; - if ($diffinfo->{'status'} ne "D") { # not deleted file + if ($diffinfo->{'to_id'} ne ('0' x 40)) { # file exists in result $to{'href'} = href(action=>"blob", hash_base=>$hash, hash=>$diffinfo->{'to_id'}, file_name=>$to{'file'});