RFR: 1813: URLs printed by Skara should have ".git" at the end of the repo name

Erik Joelsson erikj at openjdk.org
Wed Feb 8 20:24:12 UTC 2023

On Wed, 8 Feb 2023 19:51:52 GMT, Zhao Song <zsong at openjdk.org> wrote:

> In this patch, `.git` is added to the URLs printed by Skara.

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.


Changes requested by erikj (Lead).

PR: https://git.openjdk.org/skara/pull/1467

More information about the skara-dev mailing list