Skip to content

Commit c39533e

Browse files
committed
Merge #238: Specifically fetch the requested commit
6df5db8 Specifically fetch the requested commit (Carl Dong)
2 parents 0e42407 + 6df5db8 commit c39533e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/gbuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ 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"])} +refs/tags/*:refs/tags/* +refs/heads/*:refs/heads/*")
321+
system!("cd inputs/#{dir} && git fetch --update-head-ok #{sanitize_path(remote["url"], remote["url"])} #{commit}")
322322
system!("cd inputs/#{dir} && git checkout -q #{commit}")
323323
system!("cd inputs/#{dir} && git submodule update --init --recursive --force")
324324
end

0 commit comments

Comments
 (0)