╭ changed ───────╮ │src/test/net.zig│ ╰────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │486 - const upload_pack_command = try uploadPackCommand(is_ssh, allocator, cwd_path, port);│ │487 - defer allocator.free(upload_pack_command); │ │325 │ │326 try client_repo.fetch( │ │327 io, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────╮ │329 "origin", │ │330 .{ .refspecs = refspecs, .wire = .{ .ssh = .{ │ │331 .command = ssh_cmd_maybe, │ │495 - .upload_pack_command = upload_pack_command,│ │332 } } }, │ │333 ); │ │334 │ ╰────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────╮ │362 "origin", │ │363 .{ .refspecs = refspecs, .wire = .{ .ssh = .{ │ │364 .command = ssh_cmd_maybe, │ │529 - .upload_pack_command = upload_pack_command,│ │365 } } }, │ │366 ); │ │367 │ ╰────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │476 .file => false, │ │477 .wire => |wire_kind| .ssh == wire_kind, │ │478 }; │ │479 + // haxy generates a fresh host key on every run, so don't try to record │ │480 + // it. accept the unknown host and skip writing to known_hosts. the key │ │481 + // identity flag picks the ed25519 key created in Server.init. │ │482 const ssh_cmd_maybe: ?[]const u8 = if (is_ssh) blk: { │ │645 - const known_hosts_path = try std.fs.path.join(allocator, &.{ cwd_path, temp_dir_name, "known_hosts" });│ │646 - defer allocator.free(known_hosts_path); │ │647 - │ │483 const priv_key_path = try std.fs.path.join(allocator, &.{ cwd_path, temp_dir_name, "key" }); │ │484 defer allocator.free(priv_key_path); │ │485 │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │651 - break :blk try std.fmt.allocPrint(allocator, "ssh -o UserKnownHostsFile=\"{s}\" -o IdentityFile=\"{s}\"", .{ known_hosts_path, priv_key_path }); │ │486 + break :blk try std.fmt.allocPrint(allocator, "ssh -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o IdentityFile=\"{s}\"", .{priv_key_path});│ │487 } else null; │ │488 defer if (ssh_cmd_maybe) |ssh_cmd| allocator.free(ssh_cmd); │ │489 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────╮ │655 - const upload_pack_command = try uploadPackCommand(is_ssh, allocator, cwd_path, port); │ │656 - defer allocator.free(upload_pack_command); │ │657 - const receive_pack_command = try receivePackCommand(is_ssh, allocator, cwd_path, port);│ │658 - defer allocator.free(receive_pack_command); │ │490 │ │491 try client_repo.push( │ │492 io, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────╮ │496 false, │ │497 .{ .refspecs = refspecs, .wire = .{ .ssh = .{ │ │498 .command = ssh_cmd_maybe, │ │668 - .receive_pack_command = receive_pack_command,│ │499 } } }, │ │500 ); │ │501 │ ╰──────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────╮ │534 false, │ │535 .{ .wire = .{ .ssh = .{ │ │536 .command = ssh_cmd_maybe, │ │707 - .receive_pack_command = receive_pack_command,│ │537 } } }, │ │538 )); │ │539 │ ╰──────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────╮ │555 false, │ │556 .{ .wire = .{ .ssh = .{ │ │557 .command = ssh_cmd_maybe, │ │729 - .receive_pack_command = receive_pack_command,│ │558 } } }, │ │559 )); │ │560 │ ╰──────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────╮ │565 "origin", │ │566 .{ .wire = .{ .ssh = .{ │ │567 .command = ssh_cmd_maybe, │ │740 - .upload_pack_command = upload_pack_command,│ │568 } } }, │ │569 ); │ │570 │ ╰────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯