RamblingCookieMonster / PSDepend

PowerShell Dependency Handler
MIT License
285 stars 76 forks source link

Check for git command without the .exe #47

Open gaelcolas opened 7 years ago

gaelcolas commented 7 years ago

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

RamblingCookieMonster commented 7 years ago

Absolutely, works for me!