Browse Source

Make using an invalid tag/commit an error

tags/0.1
Matt Corallo 8 years ago
parent
commit
e27f2a7bce
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      bin/gbuild

+ 1
- 0
bin/gbuild View File

@@ -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