Skip to content

Commit 331de9a

Browse files
authored
Quote branches argument in zoekt.ts to fix Pipe
Adding quotes here fixes zoekt-git-index failing when a pipe is in a branch/tag
1 parent aab4a92 commit 331de9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/backend/src/zoekt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const indexGitRepository = async (repo: Repo, settings: Settings, ctx: Ap
6363
`-index ${ctx.indexPath}`,
6464
`-max_trigram_count ${settings.maxTrigramCount}`,
6565
`-file_limit ${settings.maxFileSize}`,
66-
`-branches ${revisions.join(',')}`,
66+
`-branches "${revisions.join(',')}"`,
6767
`-tenant_id ${repo.orgId}`,
6868
`-repo_id ${repo.id}`,
6969
`-shard_prefix ${shardPrefix}`,

0 commit comments

Comments
 (0)