Skip to content

project remote parser rejects repository URLs with a trailing slash #242

Description

@danny-avila

The remote parser added by #221 strips a .git suffix but not a trailing slash. A valid origin such as https://github.com/org/repo.git/ consequently fails the path regex, produces a null remote, and marks the project inventory incomplete.

Found while syncing #221 into ClickHouse/ai: https://github.com/ClickHouse/ai/pull/3849#discussion_r4033110194

Suggested direction: normalize trailing separators before stripping .git and parsing the host/path, with coverage for HTTPS and SSH-style remotes that include a trailing slash.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions