Skip to content

Commit 2967bd3

Browse files
committed
test(server): keep local worktrees when only merged cleanup is enabled
1 parent 22d56d0 commit 2967bd3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/server/src/storageCleanup.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2105,12 +2105,13 @@ describe("storage cleanup reports and local file policies", () => {
21052105
["unchanged", "removed", "No commits beyond the project branch"],
21062106
["unmerged", "kept", "Has commits beyond the project branch"],
21072107
["detached", "kept", "Project branch is unavailable"],
2108+
["merged-only", "kept", "No remote is configured for merged-worktree cleanup"],
21082109
] as const)("cleans archived local-only worktrees: %s", ([state, outcome, reason]) =>
21092110
runCleanupTest(
21102111
Effect.gen(function* () {
21112112
const { service, fs, repo, worktree, command, setThreads } = yield* cleanupFixture({
21122113
...DEFAULT_SERVER_SETTINGS.storageCleanup,
2113-
worktreeUnchanged: true,
2114+
worktreeUnchanged: state !== "merged-only",
21142115
worktreeOnMerge: true,
21152116
});
21162117
yield* command(repo, ["branch", "-m", "main", "trunk"]);

0 commit comments

Comments
 (0)