From 6493de72be35a962a45a31059c7e90a8e9c3b737 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sat, 13 Feb 2021 19:32:48 -0500 Subject: [PATCH] Work around git-annex breakage. Seems new versions of git annex just bail out when run in a "bare" repository, (at least when git config core.bare return true). Problem is, you can create work trees from bare repositories and then the result is not really "bare" even though git config core.bare will return "true". Since site deployment does this, and then tries to run git annex, we get pointless failures. Simple enough to just manually set core.bare to false when running git annex, which seems sufficient to make things work again. --- Rules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rules b/Rules index 6a8b45a..d48f287 100644 --- a/Rules +++ b/Rules @@ -69,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/} -- 2.43.0