Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bin/gbuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down