RFR: 1813: URLs printed by Skara should have ".git" at the end of the repo name
Zhao Song
zsong at openjdk.org
Wed Feb 8 21:40:54 UTC 2023
On Wed, 8 Feb 2023 20:21:59 GMT, Erik Joelsson <erikj at openjdk.org> wrote:
> I don't think we should just add ".git" to the webUrl. What we need is a new method on `HostedRepository` that returns the URL in a format suitable for the command line client. Basically the form you get in the "Code" drop down on the repository main page on GitHub. There is already a method `HostedRepository::url` which is almost this but not quite. It doesn't perform the transformation, and it adds authentication, which we don't want. Maybe `HostedRepository::transformedUrl`, not sure.
Ok, I will add a new method. Thanks.
-------------
PR: https://git.openjdk.org/skara/pull/1467
More information about the skara-dev
mailing list