MCPcopy Create free account
hub / github.com/libgit2/pygit2 / global_git_config

Function global_git_config

test/conftest.py:13–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12@pytest.fixture(scope='session', autouse=True)
13def global_git_config() -> None:
14 # Do not use global config for better test reproducibility.
15 # https://github.com/libgit2/pygit2/issues/989
16 levels = [
17 pygit2.enums.ConfigLevel.GLOBAL,
18 pygit2.enums.ConfigLevel.XDG,
19 pygit2.enums.ConfigLevel.SYSTEM,
20 ]
21 for level in levels:
22 pygit2.settings.search_path[level] = ''
23
24
25@pytest.fixture

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…