diff options
author | David Ludwig <dludwig@pobox.com> | 2015-12-02 07:58:23 -0500 |
---|---|---|
committer | David Ludwig <dludwig@pobox.com> | 2015-12-02 07:58:23 -0500 |
commit | 9aac2d5082b1c2b4072dd7d3d4e3484beb6ca00f (patch) | |
tree | 355634ec5740ebbba1f85420e7812ad7bfcf0b29 /build-scripts | |
parent | 974f532eb7d7e102377eb072d4e784464d2c32b8 (diff) |
WinRT: allowed NuGet packaging code to get hg revision regardless of cwd
Diffstat (limited to 'build-scripts')
-rw-r--r-- | build-scripts/winrtbuild.ps1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build-scripts/winrtbuild.ps1 b/build-scripts/winrtbuild.ps1 index a218b9d624..3377809553 100644 --- a/build-scripts/winrtbuild.ps1 +++ b/build-scripts/winrtbuild.ps1 @@ -248,7 +248,7 @@ if ($DidAnyDLLBuildFail -eq $true) { Write-Host -ForegroundColor Cyan "... via NuGet install: $NugetPath"
$NugetOutputDir = "$PSScriptRoot\..\VisualC-WinRT\lib\nuget"
Write-Host -ForegroundColor Cyan "... output directory: $NugetOutputDir"
- $SDLHGRevision = $($(hg log -l 1 | select-string "changeset") -Replace "changeset:\W*(\d+).*",'$1') 2>$null
+ $SDLHGRevision = $($(hg log -l 1 --repository "$PSScriptRoot\.." | select-string "changeset") -Replace "changeset:\W*(\d+).*",'$1') 2>$null
Write-Host -ForegroundColor Cyan "... HG Revision: $SDLHGRevision"
# Base options to nuget.exe
|