@@ -141,6 +141,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
141
141
return 0 ;
142
142
}
143
143
144
+ $ io ->write (sprintf (' Updating recipe for <info>%s</info>... ' , $ packageName ));
145
+
144
146
$ recipeUpdate = new RecipeUpdate ($ originalRecipe , $ newRecipe , $ symfonyLock , $ this ->rootDir );
145
147
$ this ->configurator ->populateUpdate ($ recipeUpdate );
146
148
$ originalComposerJsonHash = $ this ->flex ->getComposerJsonHash ();
@@ -185,7 +187,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
185
187
]);
186
188
} else {
187
189
$ 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. '
189
192
]);
190
193
}
191
194
}
@@ -392,12 +395,7 @@ private function isIndexClean(IOInterface $io): bool
392
395
$ processExecutor = new ProcessExecutor ($ io );
393
396
$ output = '' ;
394
397
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 );
401
399
if ('' !== trim ($ output )) {
402
400
return false ;
403
401
}
0 commit comments