[PATCH 1/3] submodule: unset core.worktree if no working tree is present

2018-06-18 Thread Stefan Beller
When a submodules work tree is removed, we should unset its core.worktree setting as the worktree is no longer present. This is not just in line with the conceptual view of submodules, but it fixes an inconvenience for looking at submodules that are not checked out: git clone

[PATCH 1/3] submodule: unset core.worktree if no working tree is present

2018-06-12 Thread Stefan Beller
When a submodules work tree is removed, we should unset its core.worktree setting as the worktree is no longer present. This is not just in line with the conceptual view of submodules, but it fixes an inconvenience for looking at submodules that are not checked out: git clone