code-complexity
code-complexity copied to clipboard
Windows Error: Program 'git' must be installed
In WSL it works like a charm, but in Windows I get the Error: Program 'git' must be installed error, because 'which' is not recognized as an internal or external command 😞
I tried using Set-Alias which where.exe and it works on the command line:
PS C:\windows\system32> which git
C:\Program Files\Git\cmd\git.exe
But I still get
'which' is not recognized as an internal or external command,
operable program or batch file.
Error: Program 'git' must be installed
😞
I think that assertGitIsInstalled() is not needed. If git is not install, trying to call it would throw an error.
Yes, I agree. We should remove it. @simonrenoult What do you think?