File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5328,7 +5328,7 @@ sub git_commit {
5328
5328
} @$parents ) .
5329
5329
' )' ;
5330
5330
}
5331
- if (gitweb_check_feature(' patches' )) {
5331
+ if (gitweb_check_feature(' patches' ) && @$parents <= 1 ) {
5332
5332
$formats_nav .= " | " .
5333
5333
$cgi -> a({-href => href(action => " patch" , -replay => 1)},
5334
5334
" patch" );
@@ -5616,7 +5616,7 @@ sub git_commitdiff {
5616
5616
$formats_nav =
5617
5617
$cgi -> a({-href => href(action => " commitdiff_plain" , -replay => 1)},
5618
5618
" raw" );
5619
- if ($patch_max ) {
5619
+ if ($patch_max && @{ $co { ' parents ' }} <= 1 ) {
5620
5620
$formats_nav .= " | " .
5621
5621
$cgi -> a({-href => href(action => " patch" , -replay => 1)},
5622
5622
" patch" );
@@ -5824,7 +5824,7 @@ sub git_commitdiff_plain {
5824
5824
5825
5825
# format-patch-style patches
5826
5826
sub git_patch {
5827
- git_commitdiff(-format => ' patch' , -single => 1);
5827
+ git_commitdiff(-format => ' patch' , -single => 1);
5828
5828
}
5829
5829
5830
5830
sub git_patches {
You can’t perform that action at this time.
0 commit comments