Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Generic Git URL configs keep percent-encoded repo names

未关闭 适合新手
#1,384 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
git, typescript
领域
backend, tooling

调研方向

从通用 Git 连接配置编译路径开始,将直接 HTTP(S) URL 的处理与现有的基于文件的通用 Git 行为进行比较。复现 issue 中的编码路径场景,然后验证 name、displayName 和 zoekt 元数据始终一致地使用解码后的 repository 路径。

由索引模型根据 Issue 内容生成。

描述

bug

Problem

Generic Git connection configs that point directly at an HTTP(S) remote derive repo names from the raw URL pathname. If the remote path contains encoded characters, such as %20, Sourcebot stores names like github.com/test/Project%20Name instead of the decoded repo name.

Reproduction

Configure a generic Git URL such as https://github.com/test/Project%20Name%20With%20Spaces.git and compile the connection config.

Expected

The direct URL path should match the existing file-based generic Git behavior and derive github.com/test/Project Name With Spaces.

Actual

The direct URL path keeps %20 in name, displayName, and zoekt metadata.

Impact

The same remote can produce inconsistent Sourcebot/zoekt repo identifiers depending on whether it is configured as a direct URL or discovered from a local repository origin.

主要语言
TypeScript
星标
3.9k
派生
374
平均合并
21 小时 18 分钟
30 天内合并 PR
39

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

sourcebot-dev/sourcebot 的其他 Issue

查看 sourcebot-dev/sourcebot 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。