Windows: make.ps1 emit commit ID

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard 2017-02-09 19:57:14 -08:00
Родитель 7efc286518
Коммит f48f1ff34c
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -97,7 +97,7 @@ Function Get-GitCommit() {
if ($env:DOCKER_GITCOMMIT.Length -eq 0) {
Throw ".git directory missing and DOCKER_GITCOMMIT environment variable not specified."
}
Write-Host "INFO: Git commit assumed from DOCKER_GITCOMMIT environment variable"
Write-Host "INFO: Git commit ($env:DOCKER_GITCOMMIT) assumed from DOCKER_GITCOMMIT environment variable"
return $env:DOCKER_GITCOMMIT
}
$gitCommit=$(git rev-parse --short HEAD)