╭ changed ───╮ │src/push.zig│ ╰────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │166 try pch.detectMerged(repo_opts, state, &ctx.core.db, &moment, ctx.io, ctx.allocator, ctx.users_dir, ctx.updates.items.items, ctx.error_writer); │ │167 │ │168 // the revisions the pushed branches cause belong to the push │ │169 - _ = try pch.refreshBranchesInTransaction(.server, repo_opts, state, &moment, ctx.io, ctx.allocator, ctx.updates.items.items, null, ctx.sideband); │ │169 + _ = try pch.refreshBranchesInTransaction(.{ .server = .{ .users_dir = ctx.users_dir } }, repo_opts, state, &moment, ctx.io, ctx.allocator, ctx.updates.items.items, null, ctx.sideband);│ │170 } │ │171 │ │172 if (ctx.sideband.gone) return error.ClientGone; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │211 return err; │ │212 }; │ │213 │ │214 - pch.refreshBranches(.server, .xit, repo_opts, io, allocator, repo, updates.items.items, &sideband) catch |err| { │ │214 + pch.refreshBranches(.{ .server = .{ .users_dir = users_dir } }, .xit, repo_opts, io, allocator, repo, updates.items.items, &sideband) catch |err| {│ │215 serve_common.logError(io, error_writer, "failed to refresh branch patches: {s}\n", .{@errorName(err)}); │ │216 - pch.refreshOpenMergeability(repo_opts, io, allocator, repo, null, &sideband); │ │216 + pch.refreshOpenMergeability(repo_opts, io, allocator, repo, users_dir, null, &sideband); │ │217 }; │ │218 try response.finish(writer, null); │ │219 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────╮ │224 allocator: std.mem.Allocator, │ │225 fork_repo: *rp.Repo(.xit, repo_opts), │ │226 target_repo: *rp.Repo(.xit, repo_opts),│ │227 + users_dir: []const u8, │ │228 id: *const [evt.event_id_size * 2]u8, │ │229 author: evt.CommitAuthor, │ │230 timestamp: u64, │ ╰────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │416 } │ │417 var patch = published_patch.event; │ │418 patch.revision = selected; │ │418 - evt.consume(.server, .repo, .xit, repo_opts, io, allocator, target_repo, evt.events_ref, &.{.{ │ │419 + evt.consume(.{ .server = .{ .users_dir = users_dir } }, .repo, .xit, repo_opts, io, allocator, target_repo, evt.events_ref, &.{.{│ │420 .id = id.*, │ │421 .timestamp = timestamp, │ │422 .author = author, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │429 refreshed = true; │ │430 } │ │431 │ │431 - if (!refreshed) pch.refreshMergeability(repo_opts, io, allocator, target_repo, patch_id); │ │432 + if (!refreshed) pch.refreshMergeability(repo_opts, io, allocator, target_repo, users_dir, patch_id);│ │433 sideband.run(io, .{ .complete_one = .writing_patch }) catch {}; │ │434 sideband.run(io, .{ .end = .writing_patch }) catch {}; │ │435 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯