Merge pull request #22 from TheBlueMatt/master

Make using an invalid tag/commit an error
lxcbr
Dev Random 12 years ago
commit 93d443077e

@ -196,6 +196,7 @@ build_desc["remotes"].each do |remote|
system!("cd inputs/#{dir} && git fetch && 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