From 38233af9a2acb332c9f8edfab62dafcb4b08ac39 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Mon, 20 Mar 2017 16:58:08 -0700 Subject: [PATCH] Look for 'git' instead of 'git.exe'. Resolves #820 --- scripts/bootstrap.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bootstrap.ps1 b/scripts/bootstrap.ps1 index fea05964b6..b7bc5afabe 100644 --- a/scripts/bootstrap.ps1 +++ b/scripts/bootstrap.ps1 @@ -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 }