mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user