Skip to content

Commit

Permalink
Merge b8a54e1 into 89a5cba
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Jul 1, 2019
2 parents 89a5cba + b8a54e1 commit 3464ac5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/CosyComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,12 @@ public function run()
$this->isPrivate = $this->privateClient->repoIsPrivate($user_name, $user_repo);
// Get the default branch of the repo.
$default_branch = $this->privateClient->getDefaultBranch($user_name, $user_repo);
// We also allow the project to override this for violinist.
if ($config->getDefaultBranch()) {
// @todo: Would be better to make sure this can actually be set, based on the branches availble. Either way,
// if a person configures this wrong, several parts will fail spectacularily anyway.
$default_branch = $config->getDefaultBranch();
}
// Try to see if we have already dealt with this (i.e already have a branch for all the updates.
$branch_user = $this->forkUser;
if ($this->isPrivate) {
Expand Down

0 comments on commit 3464ac5

Please sign in to comment.