Closed koendelaat closed 3 years ago
Hello, @koendelaat. Could you please elaborate: what do you expect to change after this patch being applied? How do we test the changes? What use cases do you target by this patch?
I am concerned because this is a very core API which is called across many authentication-related functions, and changing it may have quite a few implications, including the security-related ones.
This was a blocking issue for me using an on-premise deployment of Azure Devops Server. This on-premise server doesn't have any of the VSO, TFS or AZURE constants in the url. So deriving the https url from ssh was impossible. I don't see why the url should contain any of these constants to do the conversion. I've also added a test to show the use-case and functionality.
@ForNeVeR Is the usecase and solution clear? Or do you have other concerns?
I have checked out the changes, and they seem to work well for me: i.e. they don't affect the usual operation of Git, and I am able to clone Git repositories from both Azure DevOps and outside.
Do they work well for your on-premise server, though?
With this fix the plugin works as expected on the on-premise server.
Thanks for help! We'll include this change in the next release.
I think we don't need a check for TeamServicesUrl, so this will work for on premise deployments of ADS
351
176