Re: git config not following include paths by default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Update:

The problem is related to my having GIT_CONFIG set to a file other than ~/.gitconfig - when I unset GIT_CONFIG and copied my config file to ~/.gitconfig, the include worked as expected.

So, to reproduce:

   Do NOT have a ~/.gitconfig file
   Set GIT_CONFIG to a configuration file with [include] statements
   Then the behavior I mentioned will occur



On 6/18/20 1:25 PM, Paul S. Strauss wrote:
Using git version 2.25.1 in a bash shell on Ubuntu 20.04 (focal).

My global git config file has an [include] with path set to additional configuration.

"git config --list --show-origin --includes" shows all of my configuration, including items from the included file.

"git config --list --show-origin" shows only the items in my main config file. Not sure why "--no-includes" is the default, but not a huge deal either way.

What is a big deal is that none of the configuration in my included config file is available to me. I have lots of aliases and other settings in the included file, but none of them work.

This can't be the expected behavior, can it? If so, then including config files is pretty useless.


--
Paul S. Strauss                                  pss@xxxxxxx




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux