Ignore git checkout if nil commit-hash

If there is no `.lock` file and no commit hash specified, avoid `git checkout --detach`.
This behavior will be the same as up to mruby-3.1.

ref. #5638
This commit is contained in:
dearblue
2022-07-14 21:58:20 +09:00
parent 7733f6b246
commit b012ebfa79
+1
View File
@@ -364,6 +364,7 @@ module MRuby
end
def git_checkout_dependency(repo_dir, commit, branch)
return unless commit
@build.git.run_checkout_detach(repo_dir, commit)
end
end