╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ───────╮ │src/test/net.zig│ ╰────────────────╯ ╭────────────────────────────────────────────────────────────╮ │565 "origin", │ │566 .{ .wire = .{ .ssh = .{ │ │567 .command = ssh_cmd_maybe, │ │740 - .upload_pack_command = upload_pack_command,│ │568 } } }, │ │569 ); │ │570 │ ╰────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────╮ │577 false, │ │578 .{ .wire = .{ .ssh = .{ │ │579 .command = ssh_cmd_maybe, │ │753 - .receive_pack_command = receive_pack_command,│ │580 } } }, │ │581 )); │ │582 │ ╰──────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────╮ │599 true, │ │600 .{ .wire = .{ .ssh = .{ │ │601 .command = ssh_cmd_maybe, │ │776 - .receive_pack_command = receive_pack_command, │ │777 - } } }, │ │602 + } } }, │ │603 ); │ │604 │ │605 // verify the server ref was not updated (push was denied)│ ╰───────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────╮ │622 true, │ │623 .{ .wire = .{ .ssh = .{ │ │624 .command = ssh_cmd_maybe, │ │800 - .receive_pack_command = receive_pack_command,│ │625 } } }, │ │626 ); │ │627 │ ╰──────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────╮ │640 false, │ │641 .{ .wire = .{ .ssh = .{ │ │642 .command = ssh_cmd_maybe, │ │819 - .receive_pack_command = receive_pack_command,│ │643 } } }, │ │644 ); │ │645 │ ╰──────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │716 .file => false, │ │717 .wire => |wire_kind| .ssh == wire_kind, │ │718 }; │ │719 + // haxy generates a fresh host key on every run, so don't try to record │ │720 + // it. accept the unknown host and skip writing to known_hosts. the key │ │721 + // identity flag picks the ed25519 key created in Server.init. │ │722 const ssh_cmd_maybe: ?[]const u8 = if (is_ssh) blk: { │ │897 - const known_hosts_path = try std.fs.path.join(allocator, &.{ cwd_path, temp_dir_name, "known_hosts" });│ │898 - defer allocator.free(known_hosts_path); │ │899 - │ │723 const priv_key_path = try std.fs.path.join(allocator, &.{ cwd_path, temp_dir_name, "key" }); │ │724 defer allocator.free(priv_key_path); │ │725 │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │903 - break :blk try std.fmt.allocPrint(allocator, "ssh -o UserKnownHostsFile=\"{s}\" -o IdentityFile=\"{s}\"", .{ known_hosts_path, priv_key_path }); │ │726 + 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});│ │727 } else null; │ │728 defer if (ssh_cmd_maybe) |ssh_cmd| allocator.free(ssh_cmd); │ │729 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────╮ │907 - const receive_pack_command = try receivePackCommand(is_ssh, allocator, cwd_path, port);│ │908 - defer allocator.free(receive_pack_command); │ │730 │ │731 try client_repo.push( │ │732 io, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────╮ │736 false, │ │737 .{ .refspecs = &.{"refs/tags/1.0.0:refs/tags/1.0.0"}, .wire = .{ .ssh = .{│ │738 .command = ssh_cmd_maybe, │ │918 - .receive_pack_command = receive_pack_command, │ │739 } } }, │ │740 ); │ │741 │ ╰───────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ 848 .wire => |wire_kind| .ssh == wire_kind, │ │ 849 }; │ │ 850 │ │1031 - const upload_pack_command = try uploadPackCommand(is_ssh, allocator, cwd_path, port); │ │1032 - defer allocator.free(upload_pack_command); │ │ 851 │ │ 852 if (shell_out_to_git) { │ │ 853 const priv_key_path = try std.fs.path.join(allocator, &.{ cwd_path, temp_dir_name, "key" });│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯