Skip to content

Commit 43f6da3

Browse files
fix(server): Changes totals no longer take index.lock
Fixes #35756 Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent a3cd70d commit 43f6da3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3516,7 +3516,8 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
35163516
executeGit(
35173517
"GitVcsDriver.readBranchChangeTotals",
35183518
cwd,
3519-
[...REVIEW_DIFF_ARGS, "--numstat", "-z", ref, "--"],
3519+
// Plumbing: porcelain diff refreshes and rewrites the real index, taking index.lock.
3520+
["diff-index", "-M", "--numstat", "-z", ref, "--"],
35203521
{
35213522
allowNonZeroExit: true,
35223523
maxOutputBytes: REVIEW_METADATA_MAX_OUTPUT_BYTES,

0 commit comments

Comments
 (0)