mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-13 08:15:14 +02:00
The setup ownership guard runs before the existing not-a-directory check, so pointing a custom/--project-dir path at a file made classifyKtxRepoOwnership lstat `<file>/.git`, hit ENOTDIR, and throw — crashing the setup step instead of returning the friendly "path exists and is not a directory" result. A path that is a file (or missing) holds no git repo for ktx to avoid, so treat ENOTDIR like ENOENT and return 'unowned'. The downstream existingFolderState check still rejects a non-directory with its friendly message, and the classifier no longer throws raw errno for any caller. |
||
|---|---|---|
| .. | ||
| abort.test.ts | ||
| config-reference.test.ts | ||
| git.service.assert-worktree-clean.test.ts | ||
| git.service.delete-directories.test.ts | ||
| git.service.init-identity.test.ts | ||
| git.service.patch.test.ts | ||
| git.service.repo-isolation.test.ts | ||
| git.service.reset-hard.test.ts | ||
| git.service.test.ts | ||
| session-worktree.service.test.ts | ||