Merge branch 'en/t5407-rebase-m-fix'
[gitweb.git] / t / t7400-submodule-basic.sh
index 812db137b8db2f6f8457ccb5d6ab27e0215dbe1a..48fd14fae6e9ac04f2edac3592bfb3ee4504cab1 100755 (executable)
@@ -993,6 +993,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 &&