Skip to content

Commit 67e4b0d

Browse files
committed
Merge #239: Must tag desired commit when fetching
8399df9 Must tag desired commit when fetching (Devrandom)
2 parents c39533e + 8399df9 commit 67e4b0d

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)