Skip to content

Generic Git URL configs keep percent-encoded repo names #1384

Description

@DivyamTalwar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions