Skip to content

Commit 8399df9

Browse files
committed
Must tag desired commit when fetching
Fixes #238
1 parent c39533e commit 8399df9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/gbuild

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ build_desc["remotes"].each do |remote|
318318
system!("git init inputs/#{dir}")
319319
end
320320
if !@options[:skip_fetch]
321-
system!("cd inputs/#{dir} && git fetch --update-head-ok #{sanitize_path(remote["url"], remote["url"])} #{commit}")
322-
system!("cd inputs/#{dir} && git checkout -q #{commit}")
321+
system!("cd inputs/#{dir} && git fetch --update-head-ok #{sanitize_path(remote["url"], remote["url"])} #{commit}:refs/tags/tobuild")
322+
system!("cd inputs/#{dir} && git checkout -q tobuild")
323323
system!("cd inputs/#{dir} && git submodule update --init --recursive --force")
324324
end
325325
commit = `cd inputs/#{dir} && git log --format=%H -1 #{commit}`.strip

0 commit comments

Comments
 (0)