mirror of
https://github.com/composer/composer
synced 2025-05-11 09:32:55 +00:00
Clarify conditional
This commit is contained in:
parent
c2d9fa43eb
commit
ba96f9f6b5
1 changed files with 4 additions and 4 deletions
|
@ -194,11 +194,11 @@ EOT
|
|||
|
||||
$installer->run();
|
||||
|
||||
if (!$keepVcs && (
|
||||
!$io->isInteractive() ||
|
||||
$io->askConfirmation('<info>Do you want to remove the exisitng VCS (.git, .svn..) history?</info> [<comment>Y,n</comment>]? ', true)
|
||||
if (!$keepVcs && $installedFromVcs
|
||||
&& (
|
||||
!$io->isInteractive()
|
||||
|| $io->askConfirmation('<info>Do you want to remove the exisitng VCS (.git, .svn..) history?</info> [<comment>Y,n</comment>]? ', true)
|
||||
)
|
||||
&& (!$preferDist || $installedFromVcs)
|
||||
) {
|
||||
$finder = new Finder();
|
||||
$finder->depth(1)->directories()->in(getcwd())->ignoreVCS(false)->ignoreDotFiles(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue