From 12a707cb0f7b162e15c31915eb677bbd49b5e2cf Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 14 Dec 2016 12:19:44 -0500 Subject: [PATCH] tasks/workunit.py: depth 1 clone Signed-off-by: Sage Weil (cherry picked from commit 4faf77a649cb3f8ddf497ca81937b3dbf63a18dc) --- tasks/workunit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/workunit.py b/tasks/workunit.py index 833d81df217cf..2c5f36517a0e8 100644 --- a/tasks/workunit.py +++ b/tasks/workunit.py @@ -296,6 +296,8 @@ def _run_tests(ctx, refspec, role, tests, env, subdir=None, timeout=None): args=[ 'git', 'clone', + '--depth', + '1', git_url, clonedir, run.Raw(';'), -- 2.39.5