Files
orca/src/shared/git-cquoted-path.test.ts
T
Jinwoo HongandOrca 977960ed4a Make Windows workspace deletion reliable and respect Git locks (#7963)
* Handle locked worktree force deletion

Co-authored-by: Orca <help@stably.ai>

* Harden locked worktree removal

* Recover Windows worktree deletion after Git deregisters

* Require force permission for lock overrides

* Respect Git worktree locks during deletion

* Require structural proof before Windows deletion recovery

* Align deletion tests with fail-closed recovery

* Restore deletion test filesystem spies

* Scope remote deletion tests to runtime host

---------

Co-authored-by: Orca <help@stably.ai>
2026-07-10 17:52:50 -07:00

13 lines
470 B
TypeScript

import { describe, expect, it } from 'vitest'
import { decodeGitCQuotedPath } from './git-cquoted-path'
describe('decodeGitCQuotedPath', () => {
it('preserves an octal UTF-8 BOM instead of treating it as Git framing', () => {
expect(decodeGitCQuotedPath('"\\357\\273\\277name"')).toBe('\uFEFFname')
})
it('decodes adjacent UTF-8 octal bytes after a BOM', () => {
expect(decodeGitCQuotedPath('"\\357\\273\\277\\343\\201\\202"')).toBe('\uFEFFあ')
})
})