Instead of passing --author, lets just set the name/email for the repo temporarily.

BUG=339171

Review URL: https://codereview.chromium.org/169433008

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@252729 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/checkout.py b/checkout.py
index 2c9c68a..1c9c638 100644
--- a/checkout.py
+++ b/checkout.py
@@ -713,8 +713,7 @@
     # index.
     cmd = ['commit', '-m', 'Committed patch']
     if name and email:
-      author = '%s <%s>' % (name, email)
-      cmd.extend(['--author', author])
+      cmd = ['-c', 'user.email=%s' % email, '-c', 'user.name=%s' % name] + cmd
     if verbose:
       cmd.append('--verbose')
     self._check_call_git(cmd)