╭ changed ───╮ │src/push.zig│ ╰────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────╮ │ 8 const evt = @import("event.zig"); │ │ 9 const pch = @import("patch.zig"); │ │10 const find = @import("find.zig"); │ │11 -const cms = @import("search_commit.zig"); │ │11 +const srch_cmmt = @import("search_commit.zig"); │ │12 const fork = @import("fork.zig"); │ │13 const serve_common = @import("serve_common.zig");│ │14 │ ╰─────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │155 // the revisions the pushed branches cause belong to the push │ │156 _ = try pch.refreshBranchesInTransaction(.server, repo_opts, state, &moment, ctx.io, ctx.allocator, ctx.updates.items.items, null, ctx.progress);│ │157 } │ │158 + │ │159 + // the indexes the pushed refs invalidate belong to the push too │ │160 + _ = try find.refreshInTransaction(repo_opts, state, &moment, ctx.io, ctx.allocator); │ │161 + _ = try srch_cmmt.refreshInTransaction(repo_opts, state, &moment, ctx.io, ctx.allocator, ctx.updates.items.items); │ │162 + │ │163 try writeUndo(repo_opts, state, ctx.io, ctx.allocator, ctx.author); │ │164 } │ │165 }; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │197 serve_common.logError(io, error_writer, "failed to refresh branch patches: {s}\n", .{@errorName(err)});│ │198 pch.refreshOpenMergeability(repo_opts, io, allocator, repo, null, &progress); │ │199 }; │ │195 - find.refresh(repo_opts, io, allocator, repo) catch |err| { │ │196 - serve_common.logError(io, error_writer, "failed to refresh file index: {s}\n", .{@errorName(err)}); │ │197 - }; │ │198 - cms.refresh(repo_opts, io, allocator, repo, updates.items.items) catch |err| { │ │199 - serve_common.logError(io, error_writer, "failed to refresh commit index: {s}\n", .{@errorName(err)}); │ │200 - }; │ │200 try response.finish(writer, null); │ │201 } │ │202 │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯