Skip to content

Commit 4c915f6

Browse files
committed
fix(server): a failed worktree add names its cause on hosts with translated git output
1 parent 37df38f commit 4c915f6

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
@@ -3441,7 +3441,7 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
34413441
const onCheckoutProgress = progress?.onCheckoutProgress;
34423442

34433443
const checkoutWorkers = (yield* readConfigValue(input.cwd, "checkout.workers")) ?? "0";
3444-
yield* executeGit(
3444+
yield* executeGitWithStableDiagnostics(
34453445
"GitVcsDriver.createWorktree",
34463446
input.cwd,
34473447
["-c", `checkout.workers=${checkoutWorkers}`, ...args],
@@ -3452,7 +3452,7 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
34523452
? {
34533453
// Git only prints checkout progress when stderr is a tty or the
34543454
// delay elapsed. GIT_PROGRESS_DELAY=0 forces it through the pipe.
3455-
env: { GIT_PROGRESS_DELAY: "0", LC_ALL: "C" },
3455+
env: { GIT_PROGRESS_DELAY: "0" },
34563456
progress: {
34573457
onStderrLine: (line) => {
34583458
const parsed = parseGitCheckoutProgressLine(line);

0 commit comments

Comments
 (0)