diff --git a/apps/server/src/vcs/GitVcsDriverCore.ts b/apps/server/src/vcs/GitVcsDriverCore.ts index f739c98da29..f6c163a557a 100644 --- a/apps/server/src/vcs/GitVcsDriverCore.ts +++ b/apps/server/src/vcs/GitVcsDriverCore.ts @@ -2001,7 +2001,18 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function* executeGit( "GitVcsDriver.readUntrackedReviewDiffs.diff", cwd, - ["diff", "--no-index", "--patch", "--minimal", "--", "/dev/null", relativePath], + [ + "diff", + "--no-index", + "--patch", + "--no-color", + "--no-ext-diff", + "--no-textconv", + "--minimal", + "--", + "/dev/null", + relativePath, + ], { allowNonZeroExit: true, maxOutputBytes: REVIEW_UNTRACKED_DIFF_MAX_OUTPUT_BYTES, @@ -2046,6 +2057,9 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function* [ "diff", "--patch", + "--no-color", + "--no-ext-diff", + "--no-textconv", "--minimal", ...(input.ignoreWhitespace ? ["--ignore-all-space"] : []), "HEAD", @@ -2079,6 +2093,9 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function* [ "diff", "--patch", + "--no-color", + "--no-ext-diff", + "--no-textconv", "--minimal", ...(input.ignoreWhitespace ? ["--ignore-all-space"] : []), `${baseRef}...HEAD`,