Commit 600c17ec authored by take_cheeze's avatar take_cheeze

use shallow clone in git gem

parent 6de1c22d
...@@ -233,7 +233,7 @@ module MRuby ...@@ -233,7 +233,7 @@ module MRuby
def initialize(build) def initialize(build)
super super
@command = 'git' @command = 'git'
@flags = [] @flags = %w[--depth 1]
@clone_options = "clone %{flags} %{url} %{dir}" @clone_options = "clone %{flags} %{url} %{dir}"
@pull_options = "pull" @pull_options = "pull"
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment