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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt.py

Issue 2616403004: [WPT Export] Add proper author to exported commits (Closed)
Patch Set: [WPT Export] Add proper author to exported commits Created 3 years, 11 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
Index: third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt.py
index c165c905017f70c5da997e70c35bc3e31c0fbf27..54cb85e5ebd583e668dd18352409c69efdfd6a4c 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt.py
@@ -76,7 +76,7 @@ class LocalWPT(object):
"""Returns a list of local and remote branches."""
return self.run(['git', 'branch', '-a']).splitlines()
- def create_branch_with_patch(self, message, patch):
+ def create_branch_with_patch(self, message, patch, author):
"""Commits the given patch and pushes to the upstream repo.
Args:
@@ -99,7 +99,7 @@ class LocalWPT(object):
# TODO(jeffcarp): Use git am -p<n> where n is len(CHROMIUM_WPT_DIR.split(/'))
# or something not off-by-one.
self.run(['git', 'apply', '-'], input=patch)
- self.run(['git', 'commit', '-am', message])
+ self.run(['git', 'commit', '--author', author, '-am', message])
self.run(['git', 'push', 'github', self.branch_name])
return self.branch_name

Powered by Google App Engine
This is Rietveld 408576698