X-Git-Url: http://git.draconx.ca/gitweb/homepage.git/blobdiff_plain/00a9b42301aeb19c08c43f3774dd4e2e27945b5e..6493de72be35a962a45a31059c7e90a8e9c3b737:/Rules diff --git a/Rules b/Rules index e00c5f3..d48f287 100644 --- a/Rules +++ b/Rules @@ -16,10 +16,12 @@ # along with this program. If not, see . preprocess do + system("git", "submodule", "update", "--init") + # Remove dead annex keys from processing @items.delete_if do |item| - l = File.readlink(item.raw_filename) - true if !File.exists?(item.raw_filename) and l =~ %r{/annex/objects/} + l = File.readlink(item.raw_filename) + true if !File.exists?(item.raw_filename) and l =~ %r{/annex/objects/} rescue Errno::EINVAL end @@ -67,7 +69,8 @@ postprocess do # Register URLs for git-annex keys unless (uribase = ENV['ANNEX_URI_BASE'].to_s.chomp("/")).empty? - Open3.popen2("git", "annex", "registerurl") do |stdin, stdout, result| + Open3.popen2("git", "-c", "core.bare=false", "annex", "registerurl") do + |stdin, stdout, result| @items.each do |item| l = File.readlink(item.raw_filename) next unless l =~ %r{/annex/objects/}