Look for 'git' instead of 'git.exe'. Resolves #820

This commit is contained in:
Alexander Karatarakis 2017-03-20 16:58:08 -07:00
parent 951ea973ce
commit 38233af9a2

View File

@ -8,7 +8,7 @@ $scriptsDir = split-path -parent $MyInvocation.MyCommand.Definition
$vcpkgRootDir = & $scriptsDir\findFileRecursivelyUp.ps1 $scriptsDir .vcpkg-root
$gitHash = "unknownhash"
if (Get-Command "git.exe" -ErrorAction SilentlyContinue)
if (Get-Command "git" -ErrorAction SilentlyContinue)
{
$gitHash = git rev-parse HEAD
}