deal with .git pointer file in Git.CurrentRepo
authorJoey Hess <joeyh@joeyh.name>
Fri, 23 Oct 2020 18:56:12 +0000 (14:56 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 23 Oct 2020 18:56:12 +0000 (14:56 -0400)
commit681313dfd4e840e6366f3c39eddd92f65d764188
tree3a34be518cf5c0977e0c3e3bbe98a1a568704030
parent893d7b21e88b269e1fa742117ce05e3c36d11b53
deal with .git pointer file in Git.CurrentRepo

This fixes the bug.

Note, it's only done when GIT_DIR is set. When it's not set,
Git.Construct already handled it. This is why it was only noticed with this
git submodule command.

This commit was sponsored by Brett Eisenberg on Patreon.
CHANGELOG
Git/Construct.hs
Git/CurrentRepo.hs
doc/bugs/__34__git_submodule_foreach_git_annex_init__34___fails_with___34__git__58___createProcess__58___runInteractiveProcess__58___chdir__58___inappropriate_type___40__Not_a_directory__41____34__.mdwn
doc/bugs/__34__git_submodule_foreach_git_annex_init__34___fails_with___34__git__58___createProcess__58___runInteractiveProcess__58___chdir__58___inappropriate_type___40__Not_a_directory__41____34__/comment_3_23f3dac4a22cf7202a0bb849ee499766._comment