Repository navigation
Description
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
- Use an Azure DevOps repository literally named
tool.git, with remote[email protected]:v3/acme/platform/tool.gitorhttps://dev.azure.com/acme/platform/_git/tool.git. - Resolve its repository identity and compare a PR URL such as
https://dev.azure.com/acme/platform/_git/tool.git/pullrequest/7against that project. - 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