From 8284234229391482b860bde09e9452ce40fe6b8c Mon Sep 17 00:00:00 2001 From: dearblue Date: Sat, 28 Oct 2023 19:02:50 +0900 Subject: [PATCH] Get from local only if there is no default branch name The branch name of the cloned repository should be determined by the build configuration file. fixes #6087 --- lib/mruby/build/load_gems.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mruby/build/load_gems.rb b/lib/mruby/build/load_gems.rb index 34d35ebdd..bc7fd9010 100644 --- a/lib/mruby/build/load_gems.rb +++ b/lib/mruby/build/load_gems.rb @@ -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