From d0ca0f6814247d18d28e35de08ba193c4cf8e028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrik=20Laur=C3=A9n?= Date: Tue, 28 Apr 2020 01:09:57 +0200 Subject: [PATCH] Parse included files when reading git config files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Git config files may have an include tag pointing to another file. The included file is not parsed unless “git config --list” is explicitly told to follow includes by adding the argument ”--includes”. This change add the "--includes" when parsing the global gitconfig file. Change-Id: I892c9a3a748754c1eb8c9e220578305ca5850dd5 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/264759 Reviewed-by: Mike Frysinger Tested-by: Ulrik Laurén --- git_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_config.py b/git_config.py index 8c4efac8..9af90dfd 100644 --- a/git_config.py +++ b/git_config.py @@ -362,7 +362,7 @@ class GitConfig(object): return c def _do(self, *args): - command = ['config', '--file', self.file] + command = ['config', '--file', self.file, '--includes'] command.extend(args) p = GitCommand(None,