redirect git to stdout so powershell doesn't see them as errors

This commit is contained in:
Daniel Donenfeld 2019-02-15 12:02:11 -08:00
parent ddfcf070c8
commit aacf0301fc
2 changed files with 4 additions and 4 deletions

View File

@ -174,7 +174,7 @@ on_finish:
$branchName = "asm/$($env:APPVEYOR_REPO_COMMIT)/appveyor-$($_.jobId)"
git ls-remote --heads --exit-code https://github.com/dadonenf/GSL.git $branchName
if($?){
git push origin --delete asm/$($env:APPVEYOR_REPO_COMMIT)/appveyor-$($_.jobId)
git push origin --delete asm/$($env:APPVEYOR_REPO_COMMIT)/appveyor-$($_.jobId) 2>&1
}
}
}

View File

@ -1,11 +1,11 @@
git config --global core.autocrlf false
REM Get branch to check asm into
git checkout %APPVEYOR_REPO_BRANCH%
git checkout -b asm/%APPVEYOR_REPO_COMMIT%/appveyor-%APPVEYOR_JOB_ID%
git checkout %APPVEYOR_REPO_BRANCH% 2>&1
git checkout -b asm/%APPVEYOR_REPO_COMMIT%/appveyor-%APPVEYOR_JOB_ID% 2>&1
REM Check asm into the branch
git add "asm/*"
git status
git diff-index --cached --quiet --exit-code HEAD || git commit -m "[skip ci] Update ASM for %ASM_FOLDER%"
git push -u origin HEAD
git push -u origin HEAD 2>&1