Skip to content

Commit ee145de

Browse files
committed
pytest_plugin(fix[gitconfig]): Always write config, remove early return
why: The fixture was returning early if .gitconfig already existed, even if the file was empty or missing protocol.file.allow=always. This caused failures on Arch Linux build where git/container setup creates an incomplete .gitconfig before the fixture runs. what: - Remove early return that skipped writing when file exists - Fixture now always writes the full config with protocol.file.allow - Follow-up to #510, #511 for #509
1 parent e3ed829 commit ee145de

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/libvcs/pytest_plugin.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,6 @@ def gitconfig(
154154
"""Return git configuration, pytest fixture."""
155155
gitconfig = user_path / ".gitconfig"
156156

157-
if gitconfig.exists():
158-
return gitconfig
159-
160157
gitconfig.write_text(
161158
textwrap.dedent(
162159
f"""

0 commit comments

Comments
 (0)