Skip to content

Commit 168c4f4

Browse files
committed
fix(server): a failed worktree add names its cause on hosts with translated git output
1 parent dac3749 commit 168c4f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3450,7 +3450,7 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
34503450
const onCheckoutProgress = progress?.onCheckoutProgress;
34513451

34523452
const checkoutWorkers = (yield* readConfigValue(input.cwd, "checkout.workers")) ?? "0";
3453-
yield* executeGit(
3453+
yield* executeGitWithStableDiagnostics(
34543454
"GitVcsDriver.createWorktree",
34553455
input.cwd,
34563456
["-c", `checkout.workers=${checkoutWorkers}`, ...args],
@@ -3461,7 +3461,7 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
34613461
? {
34623462
// Git only prints checkout progress when stderr is a tty or the
34633463
// delay elapsed. GIT_PROGRESS_DELAY=0 forces it through the pipe.
3464-
env: { GIT_PROGRESS_DELAY: "0", LC_ALL: "C" },
3464+
env: { GIT_PROGRESS_DELAY: "0" },
34653465
progress: {
34663466
onStderrLine: (line) => {
34673467
const parsed = parseGitCheckoutProgressLine(line);

0 commit comments

Comments
 (0)