Commit be6b308f authored by hinoka@google.com's avatar hinoka@google.com

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
parent 5d17b921
...@@ -713,8 +713,7 @@ class GitCheckout(CheckoutBase): ...@@ -713,8 +713,7 @@ class GitCheckout(CheckoutBase):
# index. # index.
cmd = ['commit', '-m', 'Committed patch'] cmd = ['commit', '-m', 'Committed patch']
if name and email: if name and email:
author = '%s <%s>' % (name, email) cmd = ['-c', 'user.email=%s' % email, '-c', 'user.name=%s' % name] + cmd
cmd.extend(['--author', author])
if verbose: if verbose:
cmd.append('--verbose') cmd.append('--verbose')
self._check_call_git(cmd) self._check_call_git(cmd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment