Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit f58324a

Browse files
devrandomUdjinM6
authored andcommitted
Must tag desired commit when fetching
Fixes devrandom#238
1 parent 01c2297 commit f58324a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)