fix: disable git credential cache during builds
This commit is contained in:
@@ -72,7 +72,7 @@ async def test_update_source_clone(tmp_path, log_streamer):
|
||||
with patch("asyncio.create_subprocess_exec", return_value=_make_mock_process()) as mock_exec:
|
||||
await update_source("t1", source_dir, "main")
|
||||
assert mock_exec.call_count == 6 # clone, set-url, fetch, checkout, reset, clean
|
||||
assert mock_exec.call_args_list[0].args[:2] == ("git", "clone")
|
||||
assert mock_exec.call_args_list[0].args[:4] == ("git", "-c", "credential.helper=", "clone")
|
||||
|
||||
|
||||
async def test_update_source_clone_no_remote(tmp_path, log_streamer):
|
||||
|
||||
Reference in New Issue
Block a user