Skip to content

Commit 56b812a

Browse files
committed
pytest_plugin(fix[gitconfig]): Allow file:// protocol for submodule tests
why: git submodule operations spawn child processes that don't inherit local repo config, causing "transport 'file' not allowed" errors in strict build environments (#509) what: - Add [protocol "file"] allow = always to gitconfig fixture
1 parent 6205d00 commit 56b812a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/libvcs/pytest_plugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ def gitconfig(
165165
name = {vcs_name}
166166
[color]
167167
diff = auto
168+
[protocol "file"]
169+
allow = always
168170
""",
169171
),
170172
encoding="utf-8",

0 commit comments

Comments
 (0)