mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-04 12:21:03 +02:00
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 <sjg@chromium.org>
This commit is contained in:
parent
dd16f0e262
commit
c9efedfc2f
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user