PSDepend icon indicating copy to clipboard operation
PSDepend copied to clipboard

Check for git command without the .exe

Open gaelcolas opened this issue 6 years ago • 1 comments

Filing for consideration/feedback until I raise a PR.

Currently the git.ps1 script checks that git is available by doing a get-command git.exe. https://github.com/RamblingCookieMonster/PSDepend/blob/master/PSDepend/PSDependScripts/Git.ps1#L115-L117

I had an instance where git was not available in Path, but git.cmd was, via chefdk.

Would you accept a pr to change to Get-Command git ?

Thanks, Gael

gaelcolas avatar Oct 10 '17 16:10 gaelcolas

Absolutely, works for me!

RamblingCookieMonster avatar Oct 11 '17 17:10 RamblingCookieMonster