Closed samgavinio closed 7 years ago
After investigating this further, it seems that this is an issue with proc_open when Symfony\Component\Process\Process.php
makes a call to execute the git commands. The correct virtual directory is passed but somehow proc_open falls back to the current working directory on the actual filesystem. From the looks of it, doesn't look like anything can be done about it currently.
Was trying to write a PHPUnit test for a console command that makes use of
Repository
with PHPUnit's recommended virtual filesystem and it appears that this doesn't play well with it.Instead of managing the git repository within the virtual filesystem,
Repository
is trying to use the current working directory on the actual filesystem which is why I run into issues with initialising and commiting into the supposedly new git repository:The reinitialization warning is because my current working directory is another git repository but this shouldn't have happened in the first place if the virtual filesystem was used.