From 657fead0cea272cc955a6f8eb427db4952beab73 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Sat, 16 Nov 2019 14:26:37 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20fetch=20git=20tags?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/taskcluster/decisionlib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/taskcluster/decisionlib.py b/etc/taskcluster/decisionlib.py index 93ecae9ca4c..5df33970cd4 100644 --- a/etc/taskcluster/decisionlib.py +++ b/etc/taskcluster/decisionlib.py @@ -475,7 +475,7 @@ class WindowsGenericWorkerTask(GenericWorkerTask): type .git\\info\\sparse-checkout """ git += """ - git fetch {depth} %GIT_URL% %GIT_REF% + git fetch --no-tags {depth} %GIT_URL% %GIT_REF% git reset --hard %GIT_SHA% """.format(depth="--depth 30" if shallow else "") return self \ @@ -597,7 +597,7 @@ class UnixTaskMixin(Task): .with_early_script(""" git init repo cd repo - time git fetch {depth} "$GIT_URL" "$GIT_REF" + time git fetch --no-tags {depth} "$GIT_URL" "$GIT_REF" time git reset --hard "$GIT_SHA" """.format(depth="--depth 30" if shallow else ""))