1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #30896 from Microsoft/jjh/emitcommit

Windows: make.ps1 emit commit ID
This commit is contained in:
Brian Goff 2017-02-10 09:56:02 -05:00 committed by GitHub
commit bade08a063

View file

@ -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)