From 25e09d32531229e089329679df4f09a11656bdee Mon Sep 17 00:00:00 2001 From: Devrandom Date: Sun, 24 Jan 2021 17:44:44 -0800 Subject: [PATCH] use ref name as tag name instead of the constant "tobuild" --- bin/gbuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/gbuild b/bin/gbuild index 3648f10..2199ef5 100755 --- a/bin/gbuild +++ b/bin/gbuild @@ -318,11 +318,11 @@ build_desc["remotes"].each do |remote| system!("git init inputs/#{dir}") end if !@options[:skip_fetch] - system!("cd inputs/#{dir} && git fetch -f --update-head-ok #{sanitize_path(remote["url"], remote["url"])} #{commit}:refs/tags/tobuild") - system!("cd inputs/#{dir} && git checkout -q tobuild") + system!("cd inputs/#{dir} && git fetch -f --update-head-ok #{sanitize_path(remote["url"], remote["url"])} #{commit}:refs/tags/#{commit}") + system!("cd inputs/#{dir} && git checkout -q refs/tags/#{commit}") system!("cd inputs/#{dir} && git submodule update --init --recursive --force") end - commit = `cd inputs/#{dir} && git log --format=%H -1 tobuild`.strip + commit = `cd inputs/#{dir} && git log --format=%H -1 refs/tags/#{commit}`.strip raise "error looking up commit for tag #{remote["commit"]}" unless $?.exitstatus == 0 in_sums << "git:#{commit} #{dir}" end