Page MenuHomeSoftware Heritage

Deal with git protocol url to canonicalize to https
ClosedPublic

Authored by ardumont on May 20 2022, 5:26 PM.

Details

Summary

This matches the actual api call with git:// urls which returns the html url (https).

Related to T4232

Diff Detail

Repository
rDCORE Foundations and core functionalities
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D7880 (id=28436)

Rebasing onto cbcbf0102f...

Current branch diff-target is up to date.
Changes applied before test
commit 817c9e099c3bc330b865ce2f1c6eb587c703159c
Author: Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com>
Date:   Fri May 20 17:24:57 2022 +0200

    Deal with git protocol url to canonicalize to https
    
    Related to T4232

See https://jenkins.softwareheritage.org/job/DCORE/job/tests-on-diff/426/ for more details.

swh/core/github/tests/test_github_utils.py
22

that code was in runtime side for no good reason as it's only used by test.

This revision was not accepted when it landed; it landed in state Needs Review.May 20 2022, 6:17 PM
This revision was automatically updated to reflect the committed changes.