]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Test if $from_id and $to_id are defined before comparison
[Gitweb] / gitweb.perl
index 2298acf2421170eea8694f6159fb80efafd7629ca0b6b678c46744f14d88803d..e4c20cca00ae4ff6d9a190ef0b0c348ca8c5ae35bff4f2f795d7505182169415 100755 (executable)
@@ -2661,9 +2661,10 @@ sub git_patchset_body {
                # check if current patch belong to current raw line
                # and parse raw git-diff line if needed
                if (defined $diffinfo &&
+                   defined $from_id && defined $to_id &&
                    from_ids_eq($diffinfo->{'from_id'}, $from_id) &&
                    $diffinfo->{'to_id'} eq $to_id) {
-                       # this is split patch
+                       # this is continuation of a split patch
                        print "<div class=\"patch cont\">\n";
                } else {
                        # advance raw git-diff output if needed
This page took 0.200175 seconds and 4 git commands to generate.