Skip --depth=1 when it's locked

This commit is contained in:
Takashi Kokubun
2021-02-16 20:56:13 -08:00
parent 88113df098
commit 6ac79a2c44
+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