Chromium Code Reviews| Index: checkout.py |
| diff --git a/checkout.py b/checkout.py |
| index 2c9c68a7fd24ec5bcaa3df2cdd1ae89cd36bb59a..efdf3a5f1da92d2645034719216fa3e6fe21774c 100644 |
| --- a/checkout.py |
| +++ b/checkout.py |
| @@ -713,11 +713,14 @@ class GitCheckout(CheckoutBase): |
| # index. |
| cmd = ['commit', '-m', 'Committed patch'] |
| if name and email: |
| - author = '%s <%s>' % (name, email) |
| - cmd.extend(['--author', author]) |
| + self._check_call_git(['config', 'user.email', email]) |
|
agable
2014/02/22 01:18:09
Ewwwwwwww. Use
git -c user.email=Foo user.name=Ba
Ryan Tseng
2014/02/22 01:47:16
Done.
|
| + self._check_call_git(['config', 'user.name', name]) |
| if verbose: |
| cmd.append('--verbose') |
| self._check_call_git(cmd) |
| + if name and email: |
| + self._check_call_git(['config', '--unset', 'user.email', email]) |
| + self._check_call_git(['config', '--unset', 'user.name', name]) |
| if self.base_ref: |
| base_ref = self.base_ref |
| else: |