mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 00:59:05 +08:00
Look for 'git' instead of 'git.exe'. Resolves #820
This commit is contained in:
parent
951ea973ce
commit
38233af9a2
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user