Skip to content

Commit ae27ef4

Browse files
authored
Merge pull request ruby#49 from sho-h/git_depth_1
Use shallow clone.
2 parents 1bf942e + f0e2488 commit ae27ef4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

system/bc-setup-all

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ def setup_db(version)
2626
end
2727

2828
if !File.directory?(BITCLUST_BASE)
29-
`git clone https://github.com/rurema/bitclust.git #{BITCLUST_BASE}`
29+
`git clone --depth 1 https://github.com/rurema/bitclust.git #{BITCLUST_BASE}`
3030
end
3131

3232
if !File.directory?(DOC_BASE)
33-
`git clone https://github.com/rurema/doctree.git #{DOC_BASE}`
33+
`git clone --depth 1 https://github.com/rurema/doctree.git #{DOC_BASE}`
3434
end
3535

3636
Dir.chdir(DOC_BASE) do
37-
system "git pull --rebase"
37+
system "git pull --depth 1 --rebase"
3838
end
3939

4040
VERSIONS.reverse_each do |version|

0 commit comments

Comments
 (0)