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

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

Issue 2620103002: [WPT Export] Add "github" remote repo in LocalWPT constructor if it doesn't exist. (Closed)
Patch Set: 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 54cb85e5ebd583e668dd18352409c69efdfd6a4c..05c9ac1a5b630d16a4f77a5543f2ea908874e583 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt.py
@@ -44,8 +44,8 @@ class LocalWPT(object):
_log.info('Cloning %s into %s', WPT_REPO_URL, self.path)
self.host.executive.run_command(['git', 'clone', WPT_REPO_URL, self.path])
- if use_github and 'github' not in self.run(['git', 'remote']):
- raise Exception('Need to set up remote "github"')
+ if 'github' not in self.run(['git', 'remote']):
+ self.run(['git', 'remote', 'add', 'github', 'git@github.com:w3c/web-platform-tests.git'])
def run(self, command, **kwargs):
"""Runs a command in the local WPT directory."""

Powered by Google App Engine
This is Rietveld 408576698