╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ───────╮ │src/test/net.zig│ ╰────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │1392 - .stderr = .ignore, │ │1395 + .stderr = .inherit, │ │1396 }); │ │1397 + defer process.kill(io); │ │1398 const term = try process.wait(io); │ │1395 - if (term != .exited or term.exited != 0) { │ │1396 - return error.GitCommandFailed; │ │1397 - } │ │1399 + if (term != .exited or term.exited != 0) return error.GitCommandFailed;│ │1400 } │ │1401 │ │1402 // make sure fetch with want-ref was successful │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1539 }; │ │1540 │ │1541 if (shell_out_to_git) { │ │1540 - const priv_key_path = try std.fs.path.join(allocator, &.{ temp_path, "key" }); │ │1541 - defer allocator.free(priv_key_path); │ │1542 - const ssh_config_arg = try std.fmt.allocPrint(allocator, "core.sshCommand=ssh -p {} -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o IdentityFile={s}", .{ port + 1, priv_key_path });│ │1542 + const ssh_cmd = (try sshCommand(true, allocator, temp_path, port)).?; │ │1543 + defer allocator.free(ssh_cmd); │ │1544 + const ssh_config_arg = try std.fmt.allocPrint(allocator, "core.sshCommand={s}", .{ssh_cmd}); │ │1545 defer allocator.free(ssh_config_arg); │ │1546 │ │1547 // shell out to git so it will send delta objects │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │1548 var process = try std.process.spawn(io, .{ │ │1549 .argv = if (is_ssh) │ │1548 - &.{ "git", "-c", ssh_config_arg, "push", "origin", "master" } │ │1550 + &.{ "git", "-c", ssh_config_arg, "push", "--quiet", "origin", "master" }│ │1551 else │ │1550 - &.{ "git", "push", "origin", "master" }, │ │1552 + &.{ "git", "push", "--quiet", "origin", "master" }, │ │1553 .cwd = .{ .path = client_path }, │ │1554 .stdin = .ignore, │ │1555 .stdout = .ignore, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────╮ │1554 - .stderr = .ignore, │ │1556 + .stderr = .inherit, │ │1557 }); │ │1558 + defer process.kill(io); │ │1559 const term = try process.wait(io); │ │1557 - if (term != .exited or term.exited != 0) { │ │1558 - return error.GitCommandFailed; │ │1559 - } │ │1560 + if (term != .exited or term.exited != 0) return error.GitCommandFailed; │ │1561 } else { │ │1562 const ssh_cmd_maybe = try sshCommand(is_ssh, allocator, temp_path, port);│ │1563 defer if (ssh_cmd_maybe) |ssh_cmd| allocator.free(ssh_cmd); │ ╰───────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1687 const priv_key_path = try std.fs.path.join(allocator, &.{ temp_path, "key" }); │ │1688 defer allocator.free(priv_key_path); │ │1689 │ │1689 - return try std.fmt.allocPrint(allocator, "ssh -p {} -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR -o IdentitiesOnly=yes -o IdentityFile=\"{s}\"", .{ port + 1, priv_key_path });│ │1690 + if (builtin.os.tag == .windows) std.mem.replaceScalar(u8, priv_key_path, '\\', '/'); │ │1691 + const null_path = if (builtin.os.tag == .windows) "NUL" else "/dev/null"; │ │1692 + return try std.fmt.allocPrint(allocator, "ssh -p {} -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile={s} -o LogLevel=ERROR -o IdentitiesOnly=yes -i \"{s}\"", .{ port + 1, null_path, priv_key_path }); │ │1693 } │ │1694 │ │1695 const ServerFiles = union(enum) { │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯