fix: disable git credential cache during builds

This commit is contained in:
shenlei
2026-07-20 11:45:26 +09:00
parent a48909f3bc
commit 7fd3845447
3 changed files with 21 additions and 7 deletions
+1 -1
View File
@@ -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):