diff --git a/scripts/bootstrap.cmd b/scripts/bootstrap.cmd index 3c3371871..e81a08599 100644 --- a/scripts/bootstrap.cmd +++ b/scripts/bootstrap.cmd @@ -144,6 +144,10 @@ xcopy /s /q "%DNX_ROOT%" "%STAGE2_DIR%\dnx\" REM Copy the dotnet-restore script copy "%~dp0dotnet-restore.cmd" "%STAGE2_DIR%\dotnet-restore.cmd" +REM Stamp the output with the commit metadata +git rev-parse HEAD > %STAGE2_DIR%/commit + + REM Smoke-test the output set PATH=%STAGE2_DIR%;%START_PATH% diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index 7d56993cb..5a2655b91 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -101,6 +101,10 @@ cp -R $DNX_ROOT $STAGE2_DIR/dnx cp $DIR/dotnet-restore.sh $STAGE2_DIR/dotnet-restore chmod a+x $STAGE2_DIR/dotnet-restore +# Stamp the output with the commit metadata +COMMIT_ID=$(git rev-parse HEAD) +echo $COMMIT_ID > $STAGE2_DIR/commit + # Smoke-test the output banner "Testing stage2 ..." export PATH=$STAGE2_DIR:$START_PATH