You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The value of SourceRoot.RepositoryUrl with identity 'C:\git\repo' is invalid: 'https://dev.azure.com/account/project/optimized/_git/repo' C:\Program Files\dotnet\sdk\8.0.100\Sdks\Microsoft.SourceLink.AzureRepos.Git\build\Microsoft.SourceLink.AzureRepos.Git.targets 28
The "Limited Refs" article talks about enabling limited refs by default, and then mentions that it's possible to bypass limited refs for a repo on ADO by adding "_full" to the repo URL when cloning.
What it does not mention is that the opposite is true, for an unmodified repo you can opt in to limited refs by adding "_optimized" to the repo URL when cloning.
This feature is available on every ADO project I've tried it, but the lack of official documentation is unexpected.
Perhaps it's a first-party feature?
When cloning an ADO repo with limited refs, i.e. adding "optimized/" to an ADO repo path (https://dev.azure.com/account/project/optimized/_git/repo), SourceLink fails to validate the repository URL when building.
Cloning the same repo normally (https://dev.azure.com/account/project/_git/repo) works perfectly fine.
The text was updated successfully, but these errors were encountered: