Skip to content

Commit d0c0d34

Browse files
That1Drifterclaude
andcommitted
docs(server): tighten long path comments
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent b3fbdb5 commit d0c0d34

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3406,8 +3406,8 @@ describe("Windows long path configuration", () => {
34063406
);
34073407

34083408
it("extends an inherited count spelled in a different case", () => {
3409-
// A second spelling would collapse with the first on spawn, and whichever
3410-
// survived would decide which entries Git reads.
3409+
// Two spellings collapse to one on spawn (the uppercase one wins), so the
3410+
// count must be bumped under the spelling that is already there.
34113411
assert.deepStrictEqual(windowsLongPathConfigEnv("win32", { git_config_count: "2" }), {
34123412
git_config_count: "3",
34133413
GIT_CONFIG_KEY_2: "core.longpaths",

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -827,10 +827,8 @@ const collectOutput = Effect.fnUntraced(function* (
827827
/**
828828
* Git on Windows cannot create or delete a path longer than MAX_PATH (260)
829829
* unless `core.longpaths` is set. The OS-level LongPathsEnabled setting does not
830-
* cover it, and git leaves it off by default. Worktrees sit deeper than the
831-
* repository root, so a repository that works in place can fail to check out
832-
* into a worktree. Removal is worse: `git worktree remove` drops its record
833-
* before deleting files, so a long path strands a directory git no longer lists.
830+
* cover it, and git leaves it off by default, so deep worktrees fail to check
831+
* out and fail midway through removal.
834832
*
835833
* Passed through `GIT_CONFIG_*` rather than `-c` so argv stays the same on every
836834
* platform and nothing is written to the user's config. The entry is appended

0 commit comments

Comments
 (0)