Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 96ee264

Browse filesBrowse files
committed
pytest plugin(git) Fix git_remote_repo_single_commit_post_init
1 parent c71ece3 commit 96ee264
Copy full SHA for 96ee264

File tree

Expand file treeCollapse file tree

1 file changed

+7
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-3
lines changed

‎src/libvcs/pytest_plugin.py

Copy file name to clipboardExpand all lines: src/libvcs/pytest_plugin.py
+7-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.