Chromium Code Reviews| Index: checkout.py |
| diff --git a/checkout.py b/checkout.py |
| index cc570082c01219def42be817a84c0296ac950104..6cce4035e1b952195befe0df8323146815f5295e 100644 |
| --- a/checkout.py |
| +++ b/checkout.py |
| @@ -553,12 +553,14 @@ class SvnCheckout(CheckoutBase, SvnMixIn): |
| class GitCheckout(CheckoutBase): |
| """Manages a git checkout.""" |
| def __init__(self, root_dir, project_name, remote_branch, git_url, |
| - commit_user, post_processors=None, base_ref=None): |
| + commit_user, post_processors=None, base_ref=None, name=None, email=None): |
|
agable
2014/02/22 00:01:04
These should be parameters to apply_patch, not __i
|
| super(GitCheckout, self).__init__(root_dir, project_name, post_processors) |
| self.base_ref = base_ref |
| self.git_url = git_url |
| self.commit_user = commit_user |
| self.remote_branch = remote_branch |
| + self.name = name |
| + self.email = email |
| # The working branch where patches will be applied. It will track the |
| # remote branch. |
| self.working_branch = 'working_branch' |
| @@ -707,7 +709,8 @@ class GitCheckout(CheckoutBase): |
| align_stdout([getattr(e, 'stdout', '')]))) |
| # Once all the patches are processed and added to the index, commit the |
| # index. |
| - cmd = ['commit', '-m', 'Committed patch'] |
| + author = '%s <%s>' % (self.name, self.email) |
| + cmd = ['commit', '-m', 'Committed patch', '--author', author] |
| if verbose: |
| cmd.append('--verbose') |
| self._check_call_git(cmd) |