From 785ac20569ffeb8a0a94a3757e1495798b7b8e13 Mon Sep 17 00:00:00 2001 From: whimboo Date: Thu, 20 Jan 2011 10:05:57 +0100 Subject: [PATCH] Bug 627108 - Reset the automation repository to get script updates. r=aaronmt --- extension/chrome/content/mozmill-crowd.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/extension/chrome/content/mozmill-crowd.js b/extension/chrome/content/mozmill-crowd.js index bd6c96b..20fe16e 100644 --- a/extension/chrome/content/mozmill-crowd.js +++ b/extension/chrome/content/mozmill-crowd.js @@ -132,11 +132,14 @@ var gMozmillCrowd = { var path = this._storage.dir.clone(); path.append("mozmill-automation"); - if (!path.exists()) { - var repository = Utils.getPref("extensions.mozmill-crowd.repositories.mozmill-automation", ""); - this._storage.environment.run(["hg", "clone", repository, path.path]); - } - }, + // Until we have a reliable way to pull from the repository we will clone + // it again for now. + if (path.exists()) + path.remove(true); + + var repository = Utils.getPref("extensions.mozmill-crowd.repositories.mozmill-automation", ""); + this._storage.environment.run(["hg", "clone", repository, path.path]); + }, /** * XXX: Stop a test-run before closing the dialog