╭ changed ──╮ │src/try.zig│ ╰───────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │826 // fixtures commit directly, so index the ref tips by hand │ │827 try find.refresh(.{}, io, allocator, &template_repo); │ │828 try cms.refresh(.{}, io, allocator, &template_repo, null); │ │829 + // clear history only after indexing has written its transactions. │ │830 + { │ │831 + const moment = try evt.currentMoment(.{}, &template_repo); │ │832 + const roots = try evt.PatchRev.gcRoots(rp.Repo(.xit, .{}).DB, .sha1, allocator, moment);│ │833 + defer allocator.free(roots); │ │834 + _ = try template_repo.garbageCollect(io, allocator, .{ .extra_roots = roots }); │ │835 + } │ │836 } │ │837 │ │838 // copy the template to each repo's on-disk location, named by its │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────╮ │1079 try fork_repo.addConfig(io, allocator, .{ .name = "core.bare", .value = "true" });│ │1080 // the commits above skipped the push path, so index the patch branch by hand │ │1081 try find.refresh(.{}, io, allocator, &fork_repo); │ │1082 + _ = try fork_repo.garbageCollect(io, allocator, .{}); │ │1083 try fork_dir.deleteFile(io, path); │ │1084 const revision_id = evt.EventWithId.randomId(random); │ │1085 const head_tree_oid = try commitTree(io, allocator, &fork_repo, &source_oid); │ ╰────────────────────────────────────────────────────────────────────────────────────────────╯