Skip to content

[Bug]: Azure DevOps repository names ending in .git lose their suffix #36575

Closed

Description

@StiensWout

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

packages/contracts or packages/shared

Steps to reproduce

  1. Use an Azure DevOps repository literally named tool.git, with remote [email protected]:v3/acme/platform/tool.git or https://dev.azure.com/acme/platform/_git/tool.git.
  2. Resolve its repository identity and compare a PR URL such as https://dev.azure.com/acme/platform/_git/tool.git/pullrequest/7 against that project.
  3. Inspect the repository selector used for PR listing.

A deterministic test through the source-control definition registry reproduces the problem for both transports.

Expected behavior

The key ends in /_git/tool.git, remains distinct from tool, and matches its own PR URLs. The repository name and PR-list selector retain .git.

Actual behavior

The key ends in /_git/tool, colliding with a different repository. The PR URL fails repository membership, and the derived listing selector targets tool. Listing impact is code-derived; no authenticated az listing was performed.

Impact

Minor bug or occasional failure

Version or commit

pingdotgg/main @ d899bdd

Environment

Shared source-control normalization and server repository identity resolution; Linux test runner, SSH and HTTPS remotes.

Logs or stack traces

Expected: dev.azure.com/acme/platform/_git/tool.git
Received: dev.azure.com/acme/platform/_git/tool

Screenshots, recordings, or supporting files

Found by the maintainer bughunt and independently confirmed by Claude Opus 5.5 on the commit above, then reproduced again by the fix lead.

Microsoft's repository naming restrictions permit an interior period and do not reserve .git: https://learn.microsoft.com/en-us/azure/devops/organizations/settings/naming-restrictions?view=azure-devops#azure-repos
Its documented clone format uses the repository name after /_git/: https://learn.microsoft.com/en-us/azure/devops/repos/git/auth-overview?view=azure-devops

Workaround

None confirmed.

Activity

  1. added
    vouch:trusted
    on Nov 14, 2026
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

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions