From 7cf489c1f86d4f39838ec56e84920fbcdb2ae7e0 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 5 Nov 2019 12:38:03 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20fail=20tasks=20if=20a=20branch?= =?UTF-8?q?=20was=20fast-forward-pushed=20since=20the=20triggering=20push?= =?UTF-8?q?=20event?= 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 6b9d69f89d4..685634d94e5 100644 --- a/etc/taskcluster/decisionlib.py +++ b/etc/taskcluster/decisionlib.py @@ -482,7 +482,7 @@ class WindowsGenericWorkerTask(GenericWorkerTask): git += """ git fetch {depth} %GIT_URL% %GIT_REF% git reset --hard %GIT_SHA% - """.format(depth="--depth 1" if shallow else "") + """.format(depth="--depth 100" if shallow else "") return self \ .with_git() \ .with_script(git) \ @@ -604,7 +604,7 @@ class UnixTaskMixin(Task): cd repo git fetch {depth} "$GIT_URL" "$GIT_REF" git reset --hard "$GIT_SHA" - """.format(depth="--depth 1" if shallow else "")) + """.format(depth="--depth 100" if shallow else "")) def with_curl_script(self, url, file_path): self.curl_scripts_count += 1