From 88e52924175857de7b1689d45348483d72de44df Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 11 Sep 2018 14:06:46 -0400 Subject: [PATCH] followup --- ..._bd552525b7bb2ceaad72c8fa3bf41c6b._comment | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 doc/bugs/v6_-_under_subdir__58___git_add___34__whines__34____44___git_commit___34__blows__34__/comment_2_bd552525b7bb2ceaad72c8fa3bf41c6b._comment diff --git a/doc/bugs/v6_-_under_subdir__58___git_add___34__whines__34____44___git_commit___34__blows__34__/comment_2_bd552525b7bb2ceaad72c8fa3bf41c6b._comment b/doc/bugs/v6_-_under_subdir__58___git_add___34__whines__34____44___git_commit___34__blows__34__/comment_2_bd552525b7bb2ceaad72c8fa3bf41c6b._comment new file mode 100644 index 0000000000..1921f54b5a --- /dev/null +++ b/doc/bugs/v6_-_under_subdir__58___git_add___34__whines__34____44___git_commit___34__blows__34__/comment_2_bd552525b7bb2ceaad72c8fa3bf41c6b._comment @@ -0,0 +1,28 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 2""" + date="2018-09-11T17:39:05Z" + content=""" +There are a few places in git-annex where it runs git with the cwd +overridden, eg to the top of a git repository. +If it somehow comes up with a path that doesn't exist, +that would explain this error. The most likely one is +in `Git.Config.read'`, which git-annex always runs at startup. + +So it probably comes down to git running the clean filter with +the wrong `GIT_DIR` setting or something like that, leading to this as a +cascading failure. And I vaguely remember seeing something like that in the +git commit log, or having dealt with such a problem before. + +We could make git-annex upgrade fail to run with too old a git (and it +probably should at least when used with a git too old to support +smudge/clean filters at all!), but it wouldn't help if the repository was +upgraded in a different environment. git is going to run the git-annex via +the clean filter before any check can happen and the most git-annex can +then do is error out somehow. + +See also + +which seems to be the same problem without v6; they didn't say what git +version. +"""]]