1

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.

nowox
  • 25,978
  • 39
  • 143
  • 293

1 Answers1

2

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).

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250