╭ changed ───╮ │src/push.zig│ ╰────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────╮ │ 7 const rf = xit.ref; │ │ 8 const evt = @import("event.zig"); │ │ 9 const pch = @import("patch.zig"); │ │10 +const find = @import("find.zig"); │ │11 const fork = @import("fork.zig"); │ │12 const serve_common = @import("serve_common.zig");│ │13 │ ╰─────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │155 pch.refreshBranches(.server, .xit, repo_opts, io, allocator, repo, updates.items.items, &progress) catch |err| {│ │156 serve_common.logError(io, error_writer, "failed to refresh branch patches: {s}\n", .{@errorName(err)}); │ │157 pch.refreshMergeability(repo_opts, io, allocator, repo, null); │ │158 + }; │ │159 + find.refresh(repo_opts, io, allocator, repo) catch |err| { │ │160 + serve_common.logError(io, error_writer, "failed to refresh file index: {s}\n", .{@errorName(err)}); │ │161 }; │ │162 try response.finish(writer, null); │ │163 } │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │363 } │ │364 │ │365 if (!refreshed) pch.refreshMergeability(repo_opts, io, allocator, target_repo, patch_id); │ │366 + find.refresh(repo_opts, io, allocator, fork_repo) catch |err| { │ │367 + serve_common.logError(io, error_writer, "failed to refresh file index: {s}\n", .{@errorName(err)});│ │368 + }; │ │369 progress.run(io, .{ .complete_one = .writing_patch }) catch {}; │ │370 progress.run(io, .{ .end = .writing_patch }) catch {}; │ │371 │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯