╭ changed ───╮ │src/push.zig│ ╰────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │173 │ │174 // the indexes the pushed refs invalidate belong to the push too │ │175 _ = try find.refreshInTransaction(repo_opts, state, &moment, ctx.io, ctx.allocator, ctx.sideband); │ │176 - _ = try srch_cmmt.refreshInTransaction(repo_opts, state, &moment, ctx.io, ctx.allocator, ctx.updates.items.items, ctx.sideband); │ │176 + var moves: std.ArrayList(srch_cmmt.Move) = .empty; │ │177 + defer moves.deinit(ctx.allocator); │ │178 + for (ctx.updates.items.items) |update| try moves.append(ctx.allocator, .{ .old_oid = update.old_oid, .new_oid = update.new_oid });│ │179 + _ = try srch_cmmt.refreshInTransaction(repo_opts, state, &moment, ctx.io, ctx.allocator, moves.items, ctx.sideband); │ │180 │ │181 try writeUndo(repo_opts, state, ctx.io, ctx.allocator, ctx.author, ctx.updates.items.items); │ │182 } │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │354 try evt.commitEvents(.xit, repo_opts, state, ctx.io, ctx.allocator, evt.events_ref, events[0..event_count], null); │ │355 if (!try evt.consumeInTransaction(.fork, .xit, repo_opts, state, &ctx.core.db, &moment, ctx.io, ctx.allocator, evt.events_ref)) return error.CancelTransaction;│ │356 } │ │357 + // the patch branch's file index lands with the push │ │358 + _ = try find.refreshInTransaction(repo_opts, state, &moment, ctx.io, ctx.allocator, ctx.sideband); │ │359 + │ │360 // a fork push tracks no ref updates, so it records no ranges │ │361 try writeUndo(repo_opts, state, ctx.io, ctx.allocator, ctx.author, &.{}); │ │362 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │392 return err; │ │393 }; │ │394 │ │389 - find.refresh(repo_opts, io, allocator, fork_repo) catch |err| { │ │390 - serve_common.logError(io, error_writer, "failed to refresh file index: {s}\n", .{@errorName(err)});│ │391 - }; │ │395 if (!published) return response.finish(writer, null); │ │396 │ │397 sideband.run(io, .{ .text = "Updating patches" }) catch {}; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯