MacOS X doesn't have '/bin/true'

This commit is contained in:
Philipp A. Hartmann 2014-07-12 19:02:20 +02:00
parent a5c1324da9
commit 4575f93431

View File

@ -89,7 +89,7 @@ gh_pages_push() {
cd "${TRAVIS_BUILD_DIR}/doc/html"; cd "${TRAVIS_BUILD_DIR}/doc/html";
# setup credentials (hide in "set -x" mode) # setup credentials (hide in "set -x" mode)
git config core.askpass /bin/true git config core.askpass 'bash -c ":"'
( set +x ; git config credential.${GHPAGES_URL}.username "${GH_TOKEN}" ) ( set +x ; git config credential.${GHPAGES_URL}.username "${GH_TOKEN}" )
# push to GitHub # push to GitHub
git push origin gh-pages || \ git push origin gh-pages || \