Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): enable git core.longpaths on Windows #6327

ClosedThat1Drifter(GitHub profile, opens in a new tab)wants to merge 6 commits intomain fromrefs/pull/6327/headopened View on GitHub

Showing 5 changed files with 69 additions and 1 deletion (loading 4).

x
0 of 5 viewed, 5 left
69 additions and 1 deletionapps/server/src/vcs/GitVcsDriver.test.tsModified
View file
@@ -12,9 +12,10 @@
import * as Path from "effect/Path";
import * as PlatformError from "effect/PlatformError";
import { ChildProcessSpawner } from "effect/unstable/process";
-import { assert, it } from "@effect/vitest";
+import { assert, it, vi } from "@effect/vitest";
​
import { CheckpointRef, GitCommandError, VcsProcessExitError } from "@t3tools/contracts";
+import { HostProcessPlatform } from "@t3tools/shared/hostProcess";
import * as ServerConfig from "../config.ts";
import * as CheckpointStore from "../checkpointing/CheckpointStore.ts";
import * as ProcessRunner from "../processRunner.ts";
@@ -1116,3 +1117,70 @@
+​
+for (const [platform, countKey] of [
+ ["win32", "GIT_CONFIG_COUNT"],
+ ["win32", "git_config_count"],
+ ["linux", "GIT_CONFIG_COUNT"],
+] as const) {
+ it.effect(`GitVcsDriver applies long path configuration for ${platform} with ${countKey}`, () =>
+ Effect.gen(function* () {
+ const fileSystem = yield* FileSystem.FileSystem;
+ const cwd = yield* fileSystem.makeTempDirectoryScoped();
+ const driver = yield* GitVcsDriver.makeVcsDriverShape();
+ const readConfig = Effect.fn("readConfig")(function* (key: string) {
+ const result = yield* driver.execute({