╭ changed ───────╮ │src/test/net.zig│ ╰────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │645 } }, .{ .name = "admin", .email = "admin@example.test" }); │ │646 } │ │647 │ │648 - const feature_remote_url = try std.fmt.allocPrint(allocator, "git@localhost:admin:target+{s}", .{&fork_id_hex});│ │648 + const feature_remote_url = try allocator.print("git@localhost:admin:target+{s}", .{&fork_id_hex}); │ │649 defer allocator.free(feature_remote_url); │ │650 try client.addRemote(io, allocator, .{ .name = "patch-to-feature", .value = feature_remote_url }); │ │651 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │782 try std.testing.expectEqualStrings(&second_patch_oid, imported.patch_oid); │ │783 } │ │784 │ │785 - const other_url = try std.fmt.allocPrint(allocator, "git@localhost:admin:other+{s}", .{&fork_id_hex});│ │785 + const other_url = try allocator.print("git@localhost:admin:other+{s}", .{&fork_id_hex}); │ │786 defer allocator.free(other_url); │ │787 try client.addRemote(io, allocator, .{ .name = "other", .value = other_url }); │ │788 // early rejections need no input. give ssh eof so windows openssh │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │789 // doesn't hang closing stdin before forwarding the error. │ │790 - const reject_ssh_cmd = try std.fmt.allocPrint(allocator, "{s} -n", .{ssh_cmd}); │ │790 + const reject_ssh_cmd = try allocator.print("{s} -n", .{ssh_cmd}); │ │791 defer allocator.free(reject_ssh_cmd); │ │792 try std.testing.expectError(error.ServerReportedError, client.push(io, allocator, "other", "master:patch", false, .{ .wire = .{ .ssh = .{ .command = reject_ssh_cmd } } }));│ │793 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │800 defer user_repo.deinit(io, allocator); │ │801 try evt.remove(.{ .server = .{ .users_dir = users_dir } }, .user, .xit, evt.user_repo_opts, io, allocator, &user_repo, &repo_id, .repo, .{ .name = "admin", .email = "admin@example.test" });│ │802 } │ │803 - const clone_path = try std.fs.path.join(allocator, &.{ temp_path, "fork-clone" }); │ │803 + const clone_path = try std.Io.Dir.path.join(allocator, &.{ temp_path, "fork-clone" }); │ │804 defer allocator.free(clone_path); │ │805 var fork_clone = try rp.Repo(.xit, .{ .hash = hash_kind, .is_test = true }).clone( │ │806 io, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │846 }); │ │847 } │ │848 │ │849 - const denied_url = try std.fmt.allocPrint(allocator, "git@localhost:admin:target+{s}", .{&fork_id_hex}); │ │849 + const denied_url = try allocator.print("git@localhost:admin:target+{s}", .{&fork_id_hex}); │ │850 defer allocator.free(denied_url); │ │851 try client.addRemote(io, allocator, .{ .name = "denied", .value = denied_url }); │ │852 try std.testing.expectError(error.ServerReportedError, client.push(io, allocator, "denied", "master:patch", false, .{ .wire = .{ .ssh = .{ .command = reject_ssh_cmd } } }));│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │868 var server_process = try runServer(io, allocator, temp_path, port); │ │869 defer _ = server_process.kill(io); │ │870 │ │871 - const client_path = try std.fs.path.join(allocator, &.{ temp_path, "client" }); │ │871 + const client_path = try std.Io.Dir.path.join(allocator, &.{ temp_path, "client" }); │ │872 defer allocator.free(client_path); │ │873 │ │874 var client_repo = try rp.Repo(repo_kind, .{ .is_test = true, .hash = hash_kind }).init(io, allocator, .{ .path = client_path });│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │953 var server_repo = try ServerRepo.init(io, allocator, .{ .bare = true, .path = server_path }); │ │954 defer server_repo.deinit(io, allocator); │ │955 │ │956 - const client_path = try std.fs.path.join(allocator, &.{ temp_path, "client" }); │ │956 + const client_path = try std.Io.Dir.path.join(allocator, &.{ temp_path, "client" }); │ │957 defer allocator.free(client_path); │ │958 │ │959 var client_repo = try rp.Repo(repo_kind, .{ .hash = hash_kind, .is_test = true }).init(io, allocator, .{ .path = client_path });│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────╮ │1118 defer export_file.close(io); │ │1119 } │ │1120 │ │1121 - const client_path = try std.fs.path.join(allocator, &.{ temp_path, "client" }); │ │1121 + const client_path = try std.Io.Dir.path.join(allocator, &.{ temp_path, "client" });│ │1122 defer allocator.free(client_path); │ │1123 │ │1124 // get remote url │ ╰─────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1133 if (shell_out_to_git) { │ │1134 const ssh_cmd = (try sshCommand(true, allocator, temp_path, port)).?; │ │1135 defer allocator.free(ssh_cmd); │ │1136 - const ssh_config_arg = try std.fmt.allocPrint(allocator, "core.sshCommand={s}", .{ssh_cmd});│ │1136 + const ssh_config_arg = try allocator.print("core.sshCommand={s}", .{ssh_cmd}); │ │1137 defer allocator.free(ssh_config_arg); │ │1138 │ │1139 { │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────╮ │1303 const client_repo = &@field(clone_result, @tagName(hash_kind)); │ │1304 │ │1305 // make sure HEAD points to the right default branch │ │1306 - var current_branch_buffer = [_]u8{0} ** rf.MAX_REF_CONTENT_SIZE; │ │1306 + var current_branch_buffer: [rf.MAX_REF_CONTENT_SIZE]u8 = @splat(0);│ │1307 const head = try client_repo.head(io, &current_branch_buffer); │ │1308 try std.testing.expectEqualStrings("main", head.ref.name); │ │1309 │ ╰─────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯