fix a bug that prevented git-annex init from working in a submodule
authorJoey Hess <joeyh@joeyh.name>
Thu, 21 Jan 2021 19:33:15 +0000 (15:33 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 21 Jan 2021 19:33:15 +0000 (15:33 -0400)
commit95cd49abdb6e5d91441842142e11b6a883d92bc2
treeef92b56dd72d7492d916a37dce55dc5505bb3ccd
parent7482c093cc7dd619b028fed9e8956638f484540c
fix a bug that prevented git-annex init from working in a submodule

This is probably a reversion, but not sure what caused it. By the time
Annex.Init runs fixupUnusualReposAfterInit, another git-annex process has
at least sometimes already done the necessary fixups. (Eg, one run
indirectly by a git command.) But since the Repo is cached, it doesn't
realize and does them again. So, avoid crashing when git config --unset
fails.

This commit was sponsored by Jack Hill on Patreon.
Annex/Fixup.hs
CHANGELOG
doc/bugs/warning__58___unable_to_convert_submodule_to_form_that_.mdwn
doc/bugs/warning__58___unable_to_convert_submodule_to_form_that_/comment_5_06d31ed5a8c187cec7bc90339550b5e8._comment [new file with mode: 0644]