@devries-cameron20 / t3code Mirror · read-only / commits / 9f7b2ee93c
Fork 0

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 22, 05:45 UTC

fix(server): new projects are created when core.safecrlf refuses LF files (#29843)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Alex Southwell committed Nov 3, 2026 at 23:26 UTC 9f7b2ee93ccbcd96533840d7f5e0c458314b8cb1
2 files changed +9 -2
apps/server/src/project/ManagedProjectFolders.test.ts
+6
@@ -349,6 +349,12 @@ it.effect("starts a named project as a committed repository, and suffixes a take
349 const path = yield* Path.Path;
350 const root = path.resolve(baseDir, "projects");
351 assert.equal(folders.namedProjectsRoot, root);
352 + const attributes = path.join(baseDir, "crlf.gitattributes");
353 + const crlfConfig = path.join(baseDir, "crlf.gitconfig");
354 + yield* fileSystem.writeFileString(attributes, "* text=auto eol=crlf\n");
355 + yield* git(baseDir, ["config", "--file", crlfConfig, "core.safecrlf", "true"]);
356 + yield* git(baseDir, ["config", "--file", crlfConfig, "core.attributesFile", attributes]);
357 + process.env.GIT_CONFIG_GLOBAL = crlfConfig;
358
359 const first = yield* folders.createNamedProject({ name: "Pinball Stats" });
360 const second = yield* folders.createNamedProject({ name: "pinball stats" });
apps/server/src/project/ManagedProjectFolders.ts
+3 -2
@@ -395,11 +395,12 @@ const make = Effect.gen(function* () {
395 path.join(cwd, "assets", "icon.svg"),
396 namedProjectIconSvg(name),
397 );
398 - // Force explicit filenames so global ignore rules cannot drop them.
398 + // Force explicit filenames so global ignore rules cannot drop them, and keep
399 + // core.safecrlf=true from refusing the LF files under CRLF conversion.
400 yield* git.execute({
401 operation: "ManagedProjectFolders.add",
402 cwd,
402 - args: ["add", "--force", "--", "README.md", "assets/icon.svg"],
403 + args: ["-c", "core.safecrlf=false", "add", "--force", "--", "README.md", "assets/icon.svg"],
404 timeoutMs: 10_000,
405 });
406 return yield* git