Skip to content

Commit 9ba1cb5

Browse files
committed
fix(server): force C locale for git root lookup
Git translates its "not a git repository" diagnostic, so non-English hosts would miss the negative cache and respawn git on every resolve. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01WvDgDwRRG8xvtoABQ8KwtC
1 parent 8ddd79e commit 9ba1cb5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/server/src/project/RepositoryIdentityResolver.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ const resolveRepositoryIdentityCacheKey = Effect.fn("RepositoryIdentityResolver.
107107
.run({
108108
command: "git",
109109
args: ["-C", cwd, "rev-parse", "--show-toplevel"],
110+
// Keep git's "not a git repository" diagnostic untranslated.
111+
env: { LC_ALL: "C" },
110112
timeoutBehavior: "timedOutResult",
111113
})
112114
.pipe(Effect.option);

0 commit comments

Comments
 (0)