From: Simon Glass Date: Sat, 10 May 2025 11:05:01 +0000 (+0200) Subject: patman: Avoid touching the system or local config X-Git-Tag: v2025.10-rc1~118^2~69^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c9efedfc2fbd0088d340ef67c04b0a03b2cdd754;p=thirdparty%2Fu-boot.git patman: Avoid touching the system or local config Set the git variables to ensure that any local gitconfig is not used or affected by the tests. Signed-off-by: Simon Glass --- diff --git a/tools/patman/test_common.py b/tools/patman/test_common.py index bc27b2d3cef..7da995dda22 100644 --- a/tools/patman/test_common.py +++ b/tools/patman/test_common.py @@ -109,6 +109,9 @@ class TestCommon: Returns: pygit2.Repository: repository """ + os.environ['GIT_CONFIG_GLOBAL'] = '/dev/null' + os.environ['GIT_CONFIG_SYSTEM'] = '/dev/null' + repo = pygit2.init_repository(self.gitdir) self.repo = repo new_tree = repo.TreeBuilder().write()