Fix paste ownership, input bounds, and IPC validation

Supersedes #5745, #5746, and #5747.
This commit is contained in:
Jinwoo Hong
2026-06-19 17:14:55 -07:00
committed by GitHub
parent a5920b2183
commit 972078f2c4
592 changed files with 33303 additions and 3737 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { describe, expect, it, vi } from 'vitest'
import * as path from 'path'
import type { GitExec } from './git-handler-ops'
import { addWorktreeOp, removeWorktreeOp } from './git-handler-worktree-ops'
@@ -15,7 +16,7 @@ function worktreeList(...entries: { path: string; branch?: string }[]): string {
}
function resolvedRepoPath(): string {
return '/repo'
return path.posix.resolve('/repo-feature', '/repo/.git', '..')
}
describe('addWorktreeOp', () => {