Installing Git via scoop adds a git.ps1 shim. Get-Command as currently defined picks up this shim and tries to start it as a process which fails as "not a valid win32 application". This adjustment will ensure it gets the executable specifically. Tested cross platform to Linux as well.
Installing Git via scoop adds a git.ps1 shim. Get-Command as currently defined picks up this shim and tries to start it as a process which fails as "not a valid win32 application". This adjustment will ensure it gets the executable specifically. Tested cross platform to Linux as well.
Available Workaround
Get-BuildVariable -GitPath (get-command git -commandtype application)