fix: pass cwd as string in P3 mutation helper

This commit is contained in:
2026-08-12 18:08:55 +02:00
parent 3e9940b4f0
commit 96969a83d1
+2 -2
View File
@@ -716,8 +716,8 @@ async function mutateWorkspaceDescriptor(ctx, workspaceId, mutator, commitMessag
const author = join(ctx.run.root, "author"); const author = join(ctx.run.root, "author");
// The registry may have produced docs-only follow-up commits on the remote; the curator // The registry may have produced docs-only follow-up commits on the remote; the curator
// always rebases onto the latest remote head before committing so the push stays fast-forward. // always rebases onto the latest remote head before committing so the push stays fast-forward.
await git(ctx, ["fetch", "origin", "main"], { cwd: author }); await git(ctx, ["fetch", "origin", "main"], author);
await git(ctx, ["reset", "--hard", "origin/main"], { cwd: author }); await git(ctx, ["reset", "--hard", "origin/main"], author);
const workspace = structuredClone(ctx.workspaceObjects[workspaceId === "p2-dwh" ? "dwh" : "filesystem"]); const workspace = structuredClone(ctx.workspaceObjects[workspaceId === "p2-dwh" ? "dwh" : "filesystem"]);
mutator(workspace); mutator(workspace);
ctx.workspaceObjects[workspaceId === "p2-dwh" ? "dwh" : "filesystem"] = workspace; ctx.workspaceObjects[workspaceId === "p2-dwh" ? "dwh" : "filesystem"] = workspace;