diff --git a/src/Operation/RemoteMergeOperation.php b/src/Operation/RemoteMergeOperation.php index f90187a3..4748ab5d 100644 --- a/src/Operation/RemoteMergeOperation.php +++ b/src/Operation/RemoteMergeOperation.php @@ -191,6 +191,7 @@ private function createSourceBranch() $this->targetBranch = $this->switchBase; } + // Execute "git fetch" in order to ensure we have the latest commit from target base $this->processHelper->runCommand(['git', 'fetch', $this->targetBase]); $currentBaseHeadCommit = $this->processHelper->runCommand(['git', 'rev-parse', $this->targetBase]); $lastKnownCommonCommit = $this->processHelper->runCommand(['git', 'merge-base', '--fork-point', $this->targetBase, $sourceBranch]);