╭ changed ──╮ │src/try.zig│ ╰───────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────╮ │63 │ │64 const cwd_path = try std.process.currentPathAlloc(io, allocator); │ │65 defer allocator.free(cwd_path); │ │66 + const key_path = try std.fs.path.join(allocator, &.{ cwd_path, temp_dir_name, "key" });│ │67 + defer allocator.free(key_path); │ │68 │ │69 var cli = false; │ │70 var serve_args: std.ArrayList([]const u8) = .empty; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │80 } │ │81 } │ │82 var serve_options = try hx.command.parseServeOptions(allocator, serve_args.items); │ │83 + const git_ssh_prefix = if (builtin.mode == .Debug) │ │84 + try std.fmt.allocPrint(allocator, "GIT_SSH_COMMAND='ssh -i \"{s}\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR' \\\r\n", .{key_path})│ │85 + else │ │86 + ""; │ │87 + defer if (git_ssh_prefix.len != 0) allocator.free(git_ssh_prefix); │ │88 + serve_options.git_ssh_prefix = git_ssh_prefix; │ │89 │ │90 const server_path = if (std.mem.eql(u8, serve_options.data_dir, ".")) │ │91 try std.fs.path.join(allocator, &.{ cwd_path, temp_dir_name, "server" }) │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │850 break :blk try ui.Session.init(&session_arena, &repo, .{ .user_id = &admin_user_id });│ │851 }; │ │852 session.is_terminal = true; │ │853 + session.data.git_ssh_prefix = git_ssh_prefix; │ │854 │ │855 // start the server │ │856 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │874 var stderr_writer = std.Io.File.stderr().writer(io, &.{}); │ │875 const run_opts = hx.main.RunOpts{ .out = &stdout_writer.interface, .err = &stderr_writer.interface };│ │876 │ │868 - const key_path = try std.fs.path.join(allocator, &.{ cwd_path, temp_dir_name, "key" }); │ │869 - defer allocator.free(key_path); │ │870 - │ │877 const Runnable = struct { │ │878 io: std.Io, │ │879 key_path: []const u8, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯