Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Unified Diff: checkout.py

Issue 169433008: Instead of passing --author, lets just set the name/email for the repo temporarily. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Use -c, which is less hacky Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: checkout.py
diff --git a/checkout.py b/checkout.py
index 2c9c68a7fd24ec5bcaa3df2cdd1ae89cd36bb59a..1c9c63874de50b8b2568e53757cf8cd0b1c46fd8 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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698