-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SourceLink build errors when using a "limited refs" clone #1139
Comments
Docs on limited refs: https://learn.microsoft.com/en-us/previous-versions/azure/devops/all/git/limited-refs?view=tfs-2017 do not mention "optimized" as part of the path. @crhaglun are you aware of another documentation for it? |
@tmat heh, I'm trying to find something more official, but I always end up on https://stackoverflow.com/questions/56598474/how-do-you-enabled-limited-refs-in-tfs-git Internal docs point at https://vsowiki.com/index.php?title=Limited_Refs_Basics - but that host no longer appears to be online 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. |
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: