From eba799b60f0fc34d6ea3c3ac52b4d851f87a5ed1 Mon Sep 17 00:00:00 2001 From: liyuchun Date: Mon, 24 Jan 2022 17:20:19 +0800 Subject: [PATCH] * Fix bug #18492. --- module/mr/model.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/module/mr/model.php b/module/mr/model.php index f1b69d83c8..ed7f87cf73 100644 --- a/module/mr/model.php +++ b/module/mr/model.php @@ -752,12 +752,6 @@ class mrModel extends model $diffs = $singleDiff->diffs; foreach($diffs as $index => $diff) { - if(empty($commits[$index])) continue; - /* Make sure every file with same commitID is unique in $lines. */ - $shortID = $commits[$index]->short_id; - if(in_array($shortID, $commitList)) continue; - $commitList[] = $shortID; - $lines[] = sprintf("diff --git a/%s b/%s", $diff->old_path, $diff->new_path); $lines[] = sprintf("index %s ... %s %s ", $singleDiff->head_commit_sha, $singleDiff->base_commit_sha, $diff->b_mode); $lines[] = sprintf("--a/%s", $diff->old_path);