mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[vcpkg] Don't use -ListImported in bootstrap. Fixes #1711
This commit is contained in:
parent
4d952a5e1d
commit
b21bc7c11a
@ -14,7 +14,7 @@ $oldpath = $env:path
|
||||
try
|
||||
{
|
||||
$env:path += ";$vcpkgRootDir\downloads\MinGit-2.14.1-32-bit\cmd"
|
||||
if (Get-Command "git" -ListImported -ErrorAction SilentlyContinue)
|
||||
if (Get-Command "git" -ErrorAction SilentlyContinue)
|
||||
{
|
||||
$gitHash = git log HEAD -n 1 --format="%cd-%H" --date=short
|
||||
if ($LASTEXITCODE -ne 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user