Skip to content

Commit 237e332

Browse files
Jubekitaylorotwell
andauthored
Don't prompt for Git if Github Option is found (#269)
* Don't prompt for Git if Github Option is enabled * Update NewCommand.php --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 0a2ad60 commit 237e332

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NewCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ protected function interact(InputInterface $input, OutputInterface $output)
107107
) === 'Pest');
108108
}
109109

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

0 commit comments

Comments
 (0)