Skip to content

Commit 5af53e2

Browse files
committed
#140 fixes
1 parent 1cb515a commit 5af53e2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docs/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ scripts:
3737
# The content of this variable will be directly inserted into the CNAME file
3838
cname: docs.yourdomain.com
3939

40-
# Set a target branch for deploying your couscous project
40+
# Set the target branch in which to deploy the generated website
4141
branch: gh-pages
4242

4343
# Any variable you put in this file is also available in the Twig layouts:

src/Application/Cli/DeployCommand.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ protected function configure()
8181
'branch',
8282
null,
8383
InputOption::VALUE_REQUIRED,
84-
'Target branch in which to deploy the website.',
85-
false
84+
'Target branch in which to deploy the website.'
8685
);
8786
}
8887

@@ -100,7 +99,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
10099
// Generate the website
101100
$this->generator->generate($project, $output);
102101

103-
// Change the target branch if is needed
102+
// If no branch was provided, use the configured one or the default
104103
if (!$targetBranch) {
105104
$targetBranch = isset($project->metadata['branch']) ? $project->metadata['branch'] : 'gh-pages';
106105
}

0 commit comments

Comments
 (0)