Don't leak GitHub tokens during network failures

If git is unable to resolve the repo address (which includes the token),
it will print a message to stderr with the path to the repo, thus
leaking the token. Avoid doing this, and also suppress stdout to be
extra careful.
This commit is contained in:
Aneesh Agrawal 2016-09-29 07:28:14 -04:00
parent 76a8bd9cf3
commit 630b523c06
2 changed files with 7 additions and 4 deletions

View file

@ -27,4 +27,6 @@ cp apis.html ../../target/doc/servo/
cd ../..
ghp-import -n target/doc
git push -qf "https://${TOKEN}@github.com/servo/doc.servo.org.git" gh-pages
git push -qf \
"https://${TOKEN}@github.com/servo/doc.servo.org.git" gh-pages \
>/dev/null 2>&1