From 65abbf643b6910d27768edf4da8ede6d1fd24a1d Mon Sep 17 00:00:00 2001 From: Danny Hermes Date: Thu, 18 Dec 2014 12:05:43 -0800 Subject: [PATCH] Using both user name and email for gh-pages commits. The Travis logs indicate git is hinting that both an email and a name should be set: > Update docs after merge to master. > Committer: selfiebot > Your name and email address were configured automatically based > on your username and hostname. Please check that they are accurate. > You can suppress this message by setting them explicitly: > git config --global user.name "Your Name" > git config --global user.email you@example.com > After doing this, you may fix the identity used for this commit with: > git commit --amend --reset-author From https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/44498713 --- scripts/update_docs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/update_docs.sh b/scripts/update_docs.sh index 5ff3029d1875..5b7d0f196fe1 100755 --- a/scripts/update_docs.sh +++ b/scripts/update_docs.sh @@ -31,7 +31,8 @@ git status # H/T: https://github.com/dhermes if [[ -n "$(git status --porcelain)" ]]; then # Commit to gh-pages branch to apply changes. - git config user.name "selfiebot" + git config --global user.email "travis@travis-ci.org" + git config --global user.name "travis-ci" git commit -m "Update docs after merge to master." git push \ "https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME}" \