Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

Commit

Permalink
Add branch to install git command
Browse files Browse the repository at this point in the history
To provide the possibility to install a different branch other then master
  • Loading branch information
thoresuenert authored and svenluijten committed Sep 18, 2019
1 parent 0be4541 commit 4560b80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Commands/Projects/InstallGit.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class InstallGit extends BaseCommand
protected $optionMap = [
'provider' => 'provider',
'repository' => 'repository',
'branch' => 'branch',
];

/**
Expand All @@ -28,6 +29,7 @@ public function configure()
->addArgument('site', InputArgument::REQUIRED, 'The id of the site to install the git project on.')
->addOption('provider', null, InputOption::VALUE_REQUIRED, 'The provider to use. Must be either "github" or "custom".', 'github')
->addOption('repository', null, InputOption::VALUE_REQUIRED, 'The repository to install. Must be in the format "username/repository".')
->addOption('branch', null, InputOption::VALUE_OPTIONAL, 'The branch to install. Must be in the format "master".', 'master')
->setDescription('Install a new git project on a site.');
}

Expand Down

0 comments on commit 4560b80

Please sign in to comment.