From 4560b806a63736536d6516ace51fc2e052d3248c Mon Sep 17 00:00:00 2001 From: thoresuenert Date: Wed, 18 Sep 2019 12:34:49 +0200 Subject: [PATCH] Add branch to install git command To provide the possibility to install a different branch other then master --- src/Commands/Projects/InstallGit.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Commands/Projects/InstallGit.php b/src/Commands/Projects/InstallGit.php index 0062ea8..5abd799 100644 --- a/src/Commands/Projects/InstallGit.php +++ b/src/Commands/Projects/InstallGit.php @@ -16,6 +16,7 @@ class InstallGit extends BaseCommand protected $optionMap = [ 'provider' => 'provider', 'repository' => 'repository', + 'branch' => 'branch', ]; /** @@ -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.'); }