Skip to content

Commit 036f287

Browse files
committed
Merge remote-tracking branch 'upstream/patch-1'
2 parents e3028be + 7c0c46c commit 036f287

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Command/CheckoutCommand.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5151
throw new \RuntimeException('Failed on adding dependencies');
5252
}
5353

54+
$this->resetComposer();
5455
$this->executePostInstallCommands($output);
5556

5657
return 0;
@@ -69,9 +70,7 @@ private function addRepository(string $repositoryUrl, OutputInterface $output):
6970

7071
if ($configCommand->run($input, $output)) {
7172
throw new \RuntimeException('Something wrong happened when adding repository');
72-
}
73-
74-
$this->resetComposer();
73+
}
7574
}
7675

7776
private function extractDataFromPullRequest(GithubPullRequestData $pullRequestData): ComposerPullRequestData
@@ -87,7 +86,7 @@ private function extractDataFromPullRequest(GithubPullRequestData $pullRequestDa
8786
$this->getDownloader()
8887
->get($pullRequestDataRequestUrl)
8988
->getBody(),
90-
true
89+
true
9190
);
9291

9392
$targetBranch = $pullRequestDetails['base']['ref'];

0 commit comments

Comments
 (0)