The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 19:00 UTC
fix(git): disable external diff for review diff previews (#4854)
ohbentos committed
Jul 29, 2026 at 13:27 UTC
85a89868703530e03c5e79797c7b952c684bd222
1 file changed
+18
-1
apps/server/src/vcs/GitVcsDriverCore.ts
+18
-1
@@ -2049,7 +2049,18 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
2049
executeGit(
2050
"GitVcsDriver.readUntrackedReviewDiffs.diff",
2051
cwd,
2052
- ["diff", "--no-index", "--patch", "--minimal", "--", "/dev/null", relativePath],
2052
+ [
2053
+ "diff",
2054
+ "--no-index",
2055
+ "--patch",
2056
+ "--no-color",
2057
+ "--no-ext-diff",
2058
+ "--no-textconv",
2059
+ "--minimal",
2060
+ "--",
2061
+ "/dev/null",
2062
+ relativePath,
2063
+ ],
2064
{
2065
allowNonZeroExit: true,
2066
maxOutputBytes: REVIEW_UNTRACKED_DIFF_MAX_OUTPUT_BYTES,
@@ -2094,6 +2105,9 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
2105
[
2106
"diff",
2107
"--patch",
2108
+ "--no-color",
2109
+ "--no-ext-diff",
2110
+ "--no-textconv",
2111
"--minimal",
2112
...(input.ignoreWhitespace ? ["--ignore-all-space"] : []),
2113
"HEAD",
@@ -2127,6 +2141,9 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
2141
[
2142
"diff",
2143
"--patch",
2144
+ "--no-color",
2145
+ "--no-ext-diff",
2146
+ "--no-textconv",
2147
"--minimal",
2148
...(input.ignoreWhitespace ? ["--ignore-all-space"] : []),
2149
`${baseRef}...HEAD`,