Skip to content

Commit c405217

Browse files
committed
pytest_plugin(fix[git_repo]): Add set_home dependency for child processes
why: Child processes spawned by git submodule operations need HOME set to find $HOME/.gitconfig with protocol.file.allow=always configuration what: - Add set_home fixture dependency to git_repo fixture - Fixes GitHub issue #509 for users of git_repo fixture
1 parent e9a50e6 commit c405217

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/libvcs/pytest_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,7 @@ def git_repo(
701701
projects_path: pathlib.Path,
702702
git_remote_repo: pathlib.Path,
703703
set_gitconfig: pathlib.Path,
704+
set_home: None, # Needed for child processes (e.g. submodules)
704705
) -> GitSync:
705706
"""Pre-made git clone of remote repo checked out to user's projects dir."""
706707
remote_repo_name = unique_repo_name(remote_repos_path=projects_path)

0 commit comments

Comments
 (0)