Browse Source

Make using an invalid tag/commit an error

pull/22/head
Matt Corallo 10 years ago
parent
commit
e27f2a7bce
  1. 1
      bin/gbuild

1
bin/gbuild

@ -196,6 +196,7 @@ build_desc["remotes"].each do |remote| @@ -196,6 +196,7 @@ build_desc["remotes"].each do |remote|
system!("cd inputs/#{dir} && git fetch --tags")
commit = sanitize(remote["commit"], remote["commit"])
commit = `cd inputs/#{dir} && git log --format=%H -1 #{commit}`.strip
raise "error looking up commit for tag #{remote["commit"]}" unless $?.exitstatus == 0
system!("cd inputs/#{dir} && git checkout -q #{commit}")
in_sums << "git:#{commit} #{dir}"
end

Loading…
Cancel
Save