use "git clone --depth 1"
Prefer a shallow clone for builds from git repos, as we don't need all the historical stuff. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
9baece866b
commit
79d8d16184
@ -268,7 +268,7 @@ class GitDownloadStrategy <AbstractDownloadStrategy
|
|||||||
end
|
end
|
||||||
|
|
||||||
unless @clone.exist?
|
unless @clone.exist?
|
||||||
safe_system 'git', 'clone', @url, @clone # indeed, leave it verbose
|
safe_system 'git', 'clone', '--depth', '1', @url, @clone # indeed, leave it verbose
|
||||||
else
|
else
|
||||||
puts "Updating #{@clone}"
|
puts "Updating #{@clone}"
|
||||||
Dir.chdir(@clone) do
|
Dir.chdir(@clone) do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user