diff --git a/src/shared/text-search.test.ts b/src/shared/text-search.test.ts index b6528daf6e7..1517e070b4e 100644 --- a/src/shared/text-search.test.ts +++ b/src/shared/text-search.test.ts @@ -405,23 +405,6 @@ describe('ingestGitGrepLine', () => { expect(f.matches[0]).toMatchObject({ line: 10, column: 1, matchLength: 12 }) }) - it('does not broaden a separator-only include pattern to the repository', () => { - const rootPath = mkdtempSync(join(tmpdir(), 'orca-search-git-')) - try { - execFileSync('git', ['init'], { cwd: rootPath, stdio: 'ignore' }) - writeFileSync(join(rootPath, 'target.ts'), 'needle\n') - - expect(() => - execFileSync('git', buildGitGrepArgs('needle', { includePattern: '/' }), { - cwd: rootPath, - stdio: 'ignore' - }) - ).toThrow() - } finally { - rmSync(rootPath, { recursive: true, force: true }) - } - }) - it('handles colons in filenames via null delimiter', () => { const acc = createAccumulator() const re = buildSubmatchRegex('x', {})