Closed alwinaugustin closed 4 years ago
Given that the error says that it failed to execute \ status
, instead of git status
, I presume your git installation is not automatically detected. Use the second argument when instantiating the Repository to set the git binary path (your git.exe path, in the following as an example 'path\to\git.exe'), e.g.:
$repo = new Repository($path, 'path\\to\\git.exe');
// your code
I am working on a Windows machine and trying to use this library. I am using the following code in my Laravel app to initialize the repo and is getting the following output.
After this, I am trying to call the
getStatus()
on the repository object, but it is showing the following error:Exit code: 1 while executing: " status "--porcelain"" with reason: 'status' is not recognized as an internal or external command, operable program or batch file.