mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 08:02:28 +00:00
* 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>
13 lines
470 B
TypeScript
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あ')
|
|
})
|
|
})
|