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
experimental/szager/collated-output
hinoka@google.com 11 years ago
parent 5d17b921db
commit be6b308fa8

@ -713,8 +713,7 @@ class GitCheckout(CheckoutBase):
# 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)

Loading…
Cancel
Save