You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Includes
The include and includeIf sections allow you to include config directives from another source. These sections behave identically to each other with the exception that includeIf sections may be ignored if their condition does not evaluate to true; see "Conditional includes"
below.
You can include a config file from another by setting the special include.path (or includeIf.*.path) variable to the name of the file to be included. The variable takes a pathname as its value, and is subject to tilde expansion. **These variables can be given multiple times.**
Even though this might not be the final fix, I think this is a step in the right direction.
Maybe you can put something together, ideally with a test - a PR would be very welcome.
Activity
gibfahn commentedon Jan 19, 2026
From some quick testing the issue seems to be in the
_included_paths()function:GitPython/git/config.py
Lines 554 to 556 in 57bbea9
and changing
self.items(section)→self.items_all(section)starts returning all the values:but I'm not sure whether this is the right fix.
Byron commentedon Jan 19, 2026
Thanks a lot for researching this!
Even though this might not be the final fix, I think this is a step in the right direction.
Maybe you can put something together, ideally with a test - a PR would be very welcome.