Skip to content

Commit c257547

Browse files
committed
Tweaks thank to Wouter!
1 parent 690a568 commit c257547

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/Command/UpdateRecipesCommand.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
141141
return 0;
142142
}
143143

144+
$io->write(sprintf(' Updating recipe for <info>%s</info>...', $packageName));
145+
144146
$recipeUpdate = new RecipeUpdate($originalRecipe, $newRecipe, $symfonyLock, $this->rootDir);
145147
$this->configurator->populateUpdate($recipeUpdate);
146148
$originalComposerJsonHash = $this->flex->getComposerJsonHash();
@@ -185,7 +187,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
185187
]);
186188
} else {
187189
$io->write([
188-
' Run <comment>git status</comment> the changes then commit like normal.',
190+
' Run <comment>git status</comment> or <comment>git diff --cached</comment> to see the changes.',
191+
' When you\'re ready, commit these changes like normal.'
189192
]);
190193
}
191194
}
@@ -392,12 +395,7 @@ private function isIndexClean(IOInterface $io): bool
392395
$processExecutor = new ProcessExecutor($io);
393396
$output = '';
394397

395-
$processExecutor->execute('git diff --cached --name-only', $output, $this->rootDir);
396-
if ('' !== trim($output)) {
397-
return false;
398-
}
399-
400-
$processExecutor->execute('git diff --name-only', $output, $this->rootDir);
398+
$processExecutor->execute('git status --porcelain --untracked-files=no', $output, $this->rootDir);
401399
if ('' !== trim($output)) {
402400
return false;
403401
}

0 commit comments

Comments
 (0)