Skip to content

Conversation

@msukkari
Copy link
Contributor

@msukkari msukkari commented Jan 16, 2026

Add gitConfig metadata to generic git host URL connections to enable proper Zoekt indexing and file access.

For generic git host repos with HTTP/HTTPS URLs, gitConfig metadata (including zoekt.name) was missing. After cloning, remote.origin.url is unset for security, leaving Zoekt with no way to determine the repo name. This prevented search and file access for these repos. Local file-based repos worked because they retained remote.origin.url.

Fixes #741


Linear Issue: SOU-218

Open in Cursor Open in Web

…cess and search

For generic git host repos with HTTP/HTTPS URLs, the gitConfig metadata was
missing. This caused issues because:
1. After cloning, remote.origin.url is unset for security reasons
2. Zoekt uses gitConfig (specifically zoekt.name) to identify repos
3. Without gitConfig, zoekt couldn't properly identify the repo name

This fix adds proper gitConfig metadata (zoekt.name, zoekt.web-url, etc.) to
compileGenericGitHostConfig_url, similar to how other code hosts handle it.

Fixes SOU-218

Co-authored-by: michael <michael@sourcebot.dev>
@cursor
Copy link

cursor bot commented Jan 16, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@coderabbitai
Copy link

coderabbitai bot commented Jan 16, 2026

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@msukkari msukkari marked this pull request as ready for review January 16, 2026 01:05
@msukkari msukkari changed the title Local indexed repo access fix(search): Fix issue with filtering on generic git repo indexed from http/https Jan 16, 2026
@msukkari msukkari merged commit 78a0322 into main Jan 16, 2026
10 checks passed
@msukkari msukkari deleted the cursor/SOU-218-local-indexed-repo-access-f642 branch January 16, 2026 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Unable to filter by certain locally indexed repo or open any of its files

4 participants