Unverified Commit 8d050d67 authored by Mike Perry's avatar Mike Perry Committed by boklm
Browse files

Disable git fetching during build.

We should perform all network activity beforehand, so builds can be done
on an offline machine.
parent 39274e2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -264,7 +264,7 @@ build_desc["remotes"].each do |remote|
  unless File.exist?("inputs/#{dir}")
      system!("git init inputs/#{dir}")
  end
  system!("cd inputs/#{dir} && git fetch --update-head-ok #{sanitize_path(remote["url"], remote["url"])} +refs/tags/*:refs/tags/* +refs/heads/*:refs/heads/*")
#  system!("cd inputs/#{dir} && git fetch --update-head-ok #{sanitize_path(remote["url"], remote["url"])} +refs/tags/*:refs/tags/* +refs/heads/*:refs/heads/*")
  commit = remote["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