Merge pull request #6092 from dearblue/lockfile

Get from local only if there is no default branch name
This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-11-02 12:07:56 +09:00
committed by GitHub
+1 -1
View File
@@ -299,7 +299,7 @@ module MRuby
@build.gem_dir_to_repo_url[repo_dir] = url
@build.locks[url] = {
'url' => url,
'branch' => @build.git.current_branch(repo_dir),
'branch' => branch || @build.git.current_branch(repo_dir),
'commit' => @build.git.commit_hash(repo_dir),
}
end