Skip to content

Commit

Permalink
[#13] Fixed branch switch running too late.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Nov 10, 2017
1 parent 525b86e commit 09e393c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ArtefactTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,14 @@ public function artefact($remote, array $opts = [
*/
protected function prepareArtefact()
{
$this->gitSwitchToBranch($this->src, $this->artefactBranch, true);

if (!empty($this->gitignoreFile)) {
$this->replaceGitignore($this->gitignoreFile, $this->src);
}

$this->removeSubRepos($this->src);

$this->gitSwitchToBranch($this->src, $this->artefactBranch, true);

$result = $this->gitCommit($this->src, $this->message);

if ($this->showChanges) {
Expand Down

0 comments on commit 09e393c

Please sign in to comment.