explicitly set user email to <self>@google.com

I have my global user.email set to mtklein@chromium.org,
and Android's Gerrit won't let me upload that way.

Change-Id: Id5c1a0843fa7912b67ef6f32c0e262ca85a9139f
Reviewed-on: https://skia-review.googlesource.com/44500
Reviewed-by: Ravi Mistry <rmistry@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
This commit is contained in:
Mike Klein 2017-09-08 17:55:31 -04:00 committed by Skia Commit-Bot
parent acc8d2e11a
commit 11cd4640d4

View File

@ -28,6 +28,7 @@ Example usage:
"""
import argparse
import getpass
import json
import os
import subprocess
@ -102,6 +103,8 @@ About to run repo init. If it hangs asking you to run glogin then please:
'git config remote.goog.review %s/' % ANDROID_REPO_URL, shell=True)
subprocess.check_call(
'git config review.%s/.autoupload true' % ANDROID_REPO_URL, shell=True)
subprocess.check_call(
'git config user.email %s@google.com' % getpass.getuser(), shell=True)
# Create repo branch.
subprocess.check_call('%s start %s .' % (repo_binary, REPO_BRANCH_NAME),