code-complexity icon indicating copy to clipboard operation
code-complexity copied to clipboard

Windows Error: Program 'git' must be installed

Open cope opened this issue 2 years ago • 2 comments

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

😞

cope avatar Jan 15 '23 09:01 cope

I think that assertGitIsInstalled() is not needed. If git is not install, trying to call it would throw an error.

cope avatar Jan 16 '23 08:01 cope

Yes, I agree. We should remove it. @simonrenoult What do you think?

kireerik avatar Jan 01 '24 06:01 kireerik