Merge pull request #5357 from k0kubun/lock-depth

Skip --depth=1 when it's locked
This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-02-17 15:23:24 +09:00
committed by GitHub
+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