In bare repository I have the following configuration
[core]
filemode = false
How to inherit this configuration when cloning the repository?
If I do git clone //server/repo I have filemode = true.
A config is never cloned (for security reason).
The simplest way to enforce that is:
git config --global core.filemode false
That will apply to all local repos.
(The default for that config is true, when core.filemode is not specified in the local config file of the repo).