Merge branch 'jh/json-writer'
[gitweb.git] / t / t7400-submodule-basic.sh
index bfb09dd56615580fd82f8f3d680f45ecd12f9f0e..2c2c97e144172a54319ac4d988884407f4186243 100755 (executable)
@@ -994,6 +994,11 @@ test_expect_success 'submodule deinit should remove the whole submodule section
        rmdir init
 '
 
+test_expect_success 'submodule deinit should unset core.worktree' '
+       test_path_is_file .git/modules/example/config &&
+       test_must_fail git config -f .git/modules/example/config core.worktree
+'
+
 test_expect_success 'submodule deinit from subdirectory' '
        git submodule update --init &&
        git config submodule.example.foo bar &&