Skip to content

Commit 5b9d4e7

Browse files
committed
Fix bug where comparison done directly to parent (rather than merge base)
1 parent 696941e commit 5b9d4e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Git/BranchModificationsFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function getBranchModificationsSpecified(Pointer $ancestorBranch, Pointer
4444
return $this->branchModificationsCached[$cacheKey];
4545
}
4646
$modifiedFiles = $this->git->parseTouchedLines(
47-
"git diff --unified=0 {$ancestorBranch->getName()}"
47+
"git diff --unified=0 {$mergeBase->getName()}"
4848
);
4949
$newFiles = $this->git->getNewlyAddedFiles($mergeBase, $current);
5050
$this->branchModificationsCached[$cacheKey] = new BranchModifications(

0 commit comments

Comments
 (0)