Skip to content

Commit 4a449da

Browse files
authored
Quote branches argument in zoekt.ts to fix Pipe (#506)
1 parent f73a425 commit 4a449da

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212

1313
### Fixed
1414
- Fixed "At least one project, user, or group must be specified" for GitLab configs with `all` in web configurator. [#512](https://github.com/sourcebot-dev/sourcebot/pull/512)
15+
- Fixed zoekt indexing failing with pipe in branch/tag names [#506](https://github.com/sourcebot-dev/sourcebot/pull/506)
1516

1617
## [4.6.8] - 2025-09-15
1718

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)