This is my submodule redmine_dashboard config file:
[core]
repositoryformatversion = 0
filemode = true
Note that the git config man page mentions:
core.worktree
Set the path to the root of the work tree. This can be overridden by the
GIT_WORK_TREEenvironment variable and the--work-treecommand line option.
It can be an absolute path or a relative path to the.gitdirectory, either specified by--git-dirorGIT_DIR, or automatically discovered.
If--git-dirorGIT_DIRare specified but none of--work-tree,GIT_WORK_TREEandcore.worktreeis specified, the current working directory is regarded as the root of the work tree.