aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-10-05 17:31:27 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-10-05 17:31:27 -0700
commit57b638fea9375793cdc155c18d114759d7f9ba0e (patch)
treeac9294c065ad6ed9337bbb5f6612395abef5e278 /scripts
parent6b2ac13699eb03a61d3e12bb4114814afc0a793e (diff)
downloadvcpkg-57b638fea9375793cdc155c18d114759d7f9ba0e.tar.gz
vcpkg-57b638fea9375793cdc155c18d114759d7f9ba0e.zip
Fix release script to properly checkout .vcpkg-root in the temp dirs
Diffstat (limited to 'scripts')
-rw-r--r--scripts/doVcpkgRelease.ps16
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/doVcpkgRelease.ps1 b/scripts/doVcpkgRelease.ps1
index b261e8e24..9633d6608 100644
--- a/scripts/doVcpkgRelease.ps1
+++ b/scripts/doVcpkgRelease.ps1
@@ -51,11 +51,9 @@ for ($disableMetrics = 0; $disableMetrics -le 1; $disableMetrics++)
# Partial checkout for building vcpkg
$dotGitDir = "$vcpkgRootDir\.git"
$workTreeForBuildOnly = "$buildPath"
- $checkoutThisDirForBuildOnly1 = ".\scripts" # Must be relative to the root of the repository
- $checkoutThisDirForBuildOnly2 = ".\toolsrc" # Must be relative to the root of the repository
+ $checkoutForBuildOnly = ".\scripts",".\toolsrc",".vcpkg-root" # Must be relative to the root of the repository
Write-Verbose("Creating partial temporary checkout: $buildPath")
- git --git-dir="$dotGitDir" --work-tree="$workTreeForBuildOnly" checkout $gitHash -f -q -- $checkoutThisDirForBuildOnly1
- git --git-dir="$dotGitDir" --work-tree="$workTreeForBuildOnly" checkout $gitHash -f -q -- $checkoutThisDirForBuildOnly2
+ git --git-dir="$dotGitDir" --work-tree="$workTreeForBuildOnly" checkout $gitHash -f -q -- $checkoutForBuildOnly
& "$buildPath\scripts\bootstrap.ps1" -disableMetrics $disableMetrics