Skip to content

Commit

Permalink
Don't prompt for Git if Github Option is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Jubeki authored Aug 3, 2023
1 parent 0a2ad60 commit cf81e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
) === 'Pest');
}

if (! $input->getOption('git') && Process::fromShellCommandline('git --version')->run() === 0) {
if (! $input->getOption('git') && $input->getOption('github') === false && Process::fromShellCommandline('git --version')->run() === 0) {
$input->setOption('git', confirm(label: 'Would you like to initialize a Git repository?'));
}
}
Expand Down

0 comments on commit cf81e72

Please sign in to comment.