Avoid clearing the error output during removeDirectory execution, losing git error output, fixes #8351
Avoid clearing the error output during removeDirectory execution, losing git error output, fixes #8351

nicolas-grekas/composer,naderman/composer,stefangr/composer,fabpot/composer,alcohol/composer,johnstevenson/composer,andrerom/composer,milleruk/composer,staabm/composer,localheinz/composer,composer/composer,stof/composer,floverdevel/composer,pierredup/composer