submodule deinit: unset core.worktree
authorStefan Beller <sbeller@google.com>
Tue, 19 Jun 2018 00:06:08 +0000 (17:06 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Jun 2018 16:28:13 +0000 (09:28 -0700)
commit984cd77ddbf0eea7371a18ad7124120473b6bb2d
tree4747f5bc9053244ed9884d59d2bd983bf810c543
parente98317508c02b7cc65bf5b28f27788e47096b166
submodule deinit: unset core.worktree

When a submodule is deinit'd, the working tree is gone, so the setting of
core.worktree is bogus. Unset it.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
t/lib-submodule-update.sh
t/t7400-submodule-basic.sh