Make git describe work relative to script

So that you don't have to watch your CWD when running commands from the
build module.
This commit is contained in:
Andrew Schwartzmeyer
2016-06-01 11:15:09 -07:00
parent aa273571db
commit 66ddfcdaff
+2 -1
View File
@@ -53,7 +53,8 @@ function Start-PSBuild {
[string]$msbuildConfiguration = "Release"
)
git describe --dirty --abbrev=60 > "$psscriptroot/powershell.version"
# save Git description to file for PowerShell to include in PSVersionTable
git --git-dir="$PSScriptRoot/.git" describe --dirty --abbrev=60 > "$psscriptroot/powershell.version"
# simplify ParameterSetNames
if ($PSCmdlet.ParameterSetName -eq 'FullCLR') {