Repository navigation
Plugins: treat self-hosted repository paths that differ in case as different repositories - #35640
Conversation
A self-hosted Git server can serve team/Plugin and team/plugin as two repositories, so treating them as one let a catalog switch repositories without the moved-repository review. Case is still ignored on GitHub, GitLab.com and Bitbucket, which route paths case-insensitively.
[Medium impact] The PR appears safe to merge; no blocking issues were found. SummaryThis PR keeps repository paths case-sensitive on self-hosted Git servers while preserving case-insensitive comparisons on the three listed public hosts.
Reviews (2) · Last reviewed commit: "refactor(plugins): keep the marketplace ..." · Reviewed by Greptile |
|
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Minor · Preserve the suffix case on case-sensitive hosts. · plugin-marketplace.ts:304
src/shared/plugins/catalog/plugin-marketplace.ts:304
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winPreserve the suffix case on case-sensitive hosts.
On non-listed hosts,
repo.gitandrepo.GITcurrently produce the same identity. A case-sensitive Git HTTP server can map those paths to distinct repository directories. Keeprepoandrepo.gitequivalent, but strip.gitcase-insensitively only for the listed case-insensitive hosts.Suggested fix
- const repository = segments.at(-1)!.replace(/\.git$/i, '') - if (!repository) { - return null - } const normalizedHost = host.toLowerCase() + const repository = segments.at(-1)!.replace( + CASE_INSENSITIVE_GIT_HOSTS.has(normalizedHost) ? /\.git$/i : /\.git$/, + '' + ) + if (!repository) { + return null + }

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
b3e984ce-3df4-4cbe-94e7-3eb5330653da
Files selected for processing: 2-
src/shared/plugins/catalog/plugin-marketplace.test.tssrc/shared/plugins/catalog/plugin-marketplace.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
-
ELI5
When a plugin update comes from a different Git repository than the installed one, Orca asks the user to review it again. Orca decided "same repository" while ignoring upper/lower case, but some self-hosted Git servers treat
team/Pluginandteam/pluginas two different repositories. A catalog could point at the other one and skip the review.What Changed
Why
Follow-up from a review thread on #35470. Being strict on unknown hosts errs toward asking the user again, which is the safe direction; a catalog that merely respells a URL's case on a self-hosted server costs one extra review. Keeping the big hosts case-insensitive avoids spurious re-reviews where case truly does not matter.
Linked Issue
Follow-up from #35470.
Visual Proof
N/A — comparison logic only.
Testing
Notes
Applies equally to HTTPS and SSH URLs; no wire or settings change.