Skip to content

Commit eb6ea03

Browse files
committed
fix(server): allow large git commit summaries
1 parent b7aeda2 commit eb6ea03

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/server/src/vcs/GitVcsDriverCore.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,9 @@ it.layer(layerTest)("GitVcsDriver core integration", (it) => {
987987
const unborn = yield* driver.statusDetailsLocal(cwd);
988988
assert.lengthOf(unborn.workingTree.files, files.length);
989989
assert.equal(unborn.workingTree.insertions, files.length);
990-
yield* git(cwd, ["commit", "-qm", "initial"]);
990+
const initial = yield* driver.commit(cwd, "initial", "");
991+
assert.match(initial.commitSha, /^[a-f0-9]{40}$/);
992+
assert.isFalse((yield* driver.statusDetailsLocal(cwd)).hasWorkingTreeChanges);
991993
yield* Effect.forEach(files, (file) => fs.writeFileString(path.join(cwd, file), "after\n"), {
992994
concurrency: 16,
993995
discard: true,

‎apps/server/src/vcs/GitVcsDriverCore.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2467,6 +2467,7 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
24672467
options.progress?.onOutputLine?.({ stream: "stderr", text: line }) ?? Effect.void,
24682468
};
24692469
yield* executeGit("GitVcsDriver.commit.commit", cwd, args, {
2470+
maxOutputBytes: REVIEW_METADATA_MAX_OUTPUT_BYTES,
24702471
...(options?.timeoutMs !== undefined ? { timeoutMs: options.timeoutMs } : {}),
24712472
...(progress ? { progress } : {}),
24722473
}).pipe(Effect.asVoid);

0 commit comments

Comments
 (0)