Skip to content

Commit

Permalink
Merge pull request #94 from sbadia/faster-cloning
Browse files Browse the repository at this point in the history
Use faster shallow git clone
  • Loading branch information
hunner committed Mar 16, 2015
2 parents 507c09f + e5fa60e commit 1d363f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/puppetlabs_spec_helper/rake_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d363f2

Please sign in to comment.