From e6f61ea9f19d0f1fad4a6547775fa80616eeeb89 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 d424b324110dc..6b9869efea57b 100644 --- a/tasks/workunit.py +++ b/tasks/workunit.py @@ -314,6 +314,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