Skip to content

Commit 96ee264

Browse files
committed
pytest plugin(git) Fix git_remote_repo_single_commit_post_init
1 parent c71ece3 commit 96ee264

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/libvcs/pytest_plugin.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,14 @@ def git_remote_repo_single_commit_post_init(
402402
run(
403403
["touch", testfile_filename],
404404
cwd=remote_repo_path,
405-
env={"GITCONFIG": str(gitconfig)},
405+
env=env,
406+
)
407+
run(["git", "add", testfile_filename], cwd=remote_repo_path, env=env)
408+
run(
409+
["git", "commit", "-m", "test file for dummyrepo"],
410+
cwd=remote_repo_path,
411+
env=env,
406412
)
407-
run(["git", "add", testfile_filename], cwd=remote_repo_path)
408-
run(["git", "commit", "-m", "test file for dummyrepo"], cwd=remote_repo_path)
409413

410414

411415
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)