Skip --depth=1 when it's locked

This commit is contained in:
Takashi Kokubun
2021-02-16 20:56:13 -08:00
committed by mimaki
parent ea3874ed3c
commit f5d3d89ac2
+1 -1
View File
@@ -100,7 +100,7 @@ module MRuby
options = [params[:options]] || []
options << "--recursive"
options << "--branch \"#{branch}\""
options << "--depth 1" unless params[:checksum_hash]
options << "--depth 1" unless params[:checksum_hash] || lock
mkdir_p "#{gem_clone_dir}"
git.run_clone gemdir, url, options