From be6b308fa871042ce83b0538db5b24214768ea01 Mon Sep 17 00:00:00 2001 From: "hinoka@google.com" Date: Sat, 22 Feb 2014 02:20:14 +0000 Subject: [PATCH] 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 --- checkout.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/checkout.py b/checkout.py index 2c9c68a7f..1c9c63874 100644 --- a/checkout.py +++ b/checkout.py @@ -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)