From e5fa60e0b497f8aa662b21ade6a572a0525d8b51 Mon Sep 17 00:00:00 2001 From: Lukas Zapletal Date: Thu, 29 May 2014 13:32:33 +0200 Subject: [PATCH] Use faster shallow git clone --- lib/puppetlabs_spec_helper/rake_tasks.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/puppetlabs_spec_helper/rake_tasks.rb b/lib/puppetlabs_spec_helper/rake_tasks.rb index a3d7c3d6..868d21d1 100644 --- a/lib/puppetlabs_spec_helper/rake_tasks.rb +++ b/lib/puppetlabs_spec_helper/rake_tasks.rb @@ -65,6 +65,7 @@ def clone_repo(scm, remote, target, ref=nil, branch=nil) args.push(remote, target) when 'git' args.push('clone') + args.push('--depth 1') args.push('-b', branch) if branch args.push(remote, target) else