From c39dbb81e33fa241ca5dc06224ec8fd30c92e69f Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 15 Feb 2019 19:31:48 +0100 Subject: [PATCH] TC Windows: Use generic-worker "raw mounts" for the sparse-checkout file CC https://bugzilla.mozilla.org/show_bug.cgi?id=1495732 --- etc/taskcluster/decisionlib.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/etc/taskcluster/decisionlib.py b/etc/taskcluster/decisionlib.py index f23248a4b79..82090bd75a8 100644 --- a/etc/taskcluster/decisionlib.py +++ b/etc/taskcluster/decisionlib.py @@ -431,14 +431,15 @@ class WindowsGenericWorkerTask(GenericWorkerTask): cd repo """ if sparse_checkout: + self.with_mounts({ + "file": "sparse-checkout", + "content": {"raw": "\n".join(sparse_checkout)}, + }) git += """ git config core.sparsecheckout true - echo %SPARSE_CHECKOUT_BASE64% > .git\\info\\sparse.b64 - certutil -decode .git\\info\\sparse.b64 .git\\info\\sparse-checkout + copy ..\\sparse-checkout .git\\info\\sparse-checkout type .git\\info\\sparse-checkout """ - self.env["SPARSE_CHECKOUT_BASE64"] = base64.b64encode( - "\n".join(sparse_checkout).encode("utf-8")) git += """ git fetch --depth 1 %GIT_URL% %GIT_REF% git reset --hard %GIT_SHA%