Skip to content

Commit

Permalink
Update RemoteMergeOperation::createSourceBranch()
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys committed May 18, 2018
1 parent ca8033b commit 6a1d22e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Operation/RemoteMergeOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,6 @@ private function createSourceBranch()
$this->targetBranch = $this->switchBase;
}

if ($this->squash) {
$this->gitHelper->squashCommits($this->targetBase, $sourceBranch, $this->forceSquash, $this->guardSync);
}

$currentBaseHeadCommit = $this->processHelper->runCommand(['git', 'rev-parse', $this->targetBase]);
$lastKnownCommonCommit = $this->processHelper->runCommand(['git', 'merge-base', '--fork-point', $this->targetBase, $sourceBranch]);

Expand All @@ -213,6 +209,10 @@ private function createSourceBranch()
}
}

if ($this->squash) {
$this->gitHelper->squashCommits($this->targetBase, $sourceBranch, $this->forceSquash);
}

// Allow a callback to allow late commits list composition
if ($this->message instanceof \Closure) {
$closure = $this->message;
Expand Down

0 comments on commit 6a1d22e

Please sign in to comment.