diff options
Diffstat (limited to 'python/servo/devenv_commands.py')
-rw-r--r-- | python/servo/devenv_commands.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py index 4ad07477f3f..95bb2d054a9 100644 --- a/python/servo/devenv_commands.py +++ b/python/servo/devenv_commands.py @@ -152,11 +152,17 @@ class MachCommands(CommandBase): code = call(["git", "init"], env=self.build_env()) if code: return code - call( + code = call( ["git", "remote", "add", "upstream", "https://github.com/w3c/wptrunner.git"], env=self.build_env()) + if code: + return code code = call(["git", "fetch", "upstream"], env=self.build_env()) if code: return code - code = call(["git", "reset", '--', "hard", "remotes/upstream/master"], env=self.build_env()) + code = call(["git", "reset", "--hard", "remotes/upstream/master"], env=self.build_env()) + if code: + return code + code = call(["rm", "-rf", ".git"], env=self.build_env()) if code: return code + return 0 |