Skip to content

Commit

Permalink
The "deploy" command no longer throws an exception, when unconfigued …
Browse files Browse the repository at this point in the history
…& executed through `commit`/`update` command
  • Loading branch information
aik099 committed Aug 20, 2024
1 parent 1efcca2 commit 0099d23
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"require": {
"php": "^5.6|>=7.0.8",
"symfony/process": "^3.4 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
"console-helpers/console-kit": "^0.3",
"console-helpers/console-kit": "^0.4",
"aura/sql": "^3.0 || ^4.0 || ^5.0",
"padraic/phar-updater": "dev-use-curl",
"padraic/humbug_get_contents": "^1.0",
Expand Down
16 changes: 8 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/SVNBuddy/Command/DeployCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
$suffix = $is_remote ? 'remote' : 'local';

if ( !$deploy_commands ) {
throw new CommandException('The ' . $suffix . ' deployment commands are not specified.');
if ( $this->getApplication()->isTopmostCommand($this) ) {
throw new CommandException('The ' . $suffix . ' deployment commands are not specified.');
}

return;
}

$this->io->writeln('<info>Performing a ' . $suffix . ' deploy...</info>');
Expand Down

0 comments on commit 0099d23

Please sign in to comment.