Skip to content

Commit 812b47c

Browse files
fix(server): force LC_ALL=C on git diff HEAD --numstat for locale-safe unborn HEAD detection
1 parent 66de31a commit 812b47c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,9 +1519,12 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
15191519

15201520
const [numstatStdout, defaultRefResult, hasPrimaryRemote] = yield* Effect.all(
15211521
[
1522-
executeGit("GitVcsDriver.statusDetails.numstat", cwd, ["diff", "HEAD", "--numstat"], {
1523-
allowNonZeroExit: true,
1524-
}).pipe(
1522+
executeGitWithStableDiagnostics(
1523+
"GitVcsDriver.statusDetails.numstat",
1524+
cwd,
1525+
["diff", "HEAD", "--numstat"],
1526+
{ allowNonZeroExit: true },
1527+
).pipe(
15251528
Effect.flatMap((result) => {
15261529
if (result.exitCode === 0) return Effect.succeed(result.stdout);
15271530
if (isUnbornHeadStderr(result.stderr)) {

0 commit comments

Comments
 (0)