]> _ Git - alire.git/commit
Tweaks for detection of git URLs (#530)
authorAlejandro R Mosteo <alejandro@mosteo.com>
Tue, 15 Sep 2020 15:28:55 +0000 (17:28 +0200)
committerGitHub <noreply@github.com>
Tue, 15 Sep 2020 15:28:55 +0000 (17:28 +0200)
commite4a2ef34c33ae864f760745e06c0143e40fd23fc
treee752f013710854f86b6c2a834e31b37e16f52933
parent74788266893d4f22a5c3d3fc67211e4b394ba5e4
Tweaks for detection of git URLs (#530)

* Transform private repo URL into public one

For fetching from github, it is safe to do this transformation, whereas users
working with the repo may find more convenient the use of private git@ URLs.

* Detect github URLs missing a trailing ".git"

* Testsuite: more cases for git remotes

* Allow controlling the git@ -> https:// transformation

* Generalize checks beyond github

* Unit test for Alire.VCSs.Git.Transform_To_Public
src/alire/alire-origins.adb
src/alire/alire-origins.ads
src/alire/alire-publish.adb
src/alire/alire-selftest.adb
src/alire/alire-uri.ads
src/alire/alire-vcss-git.adb
src/alire/alire-vcss-git.ads
testsuite/tests/publish/bad-arguments/test.py