~edwargix/git.sr.ht

b0cc7460e5e259fcf9f25ed121e8e16de12c91ef — Drew DeVault 7 years ago 2c3e156
Remove git:// support

It's an insecure protocol anyway.
1 files changed, 1 insertions(+), 2 deletions(-)

M gitsrht/blueprints/public.py
M gitsrht/blueprints/public.py => gitsrht/blueprints/public.py +1 -2
@@ 54,8 54,7 @@ def cgit_passthrough(owner_name, repo_name, cgit_path=""):
    base = cfg("network", "git").replace("http://", "").replace("https://", "")
    clone_urls = [
        ("ssh://git@{}:{}/{}", "git@{}:{}/{}"),
        ("https://{}/{}/{}",),
        ("git://{}/{}/{}",)
        ("https://{}/{}/{}",)
    ]
    if "Repository seems to be empty" in r.text:
        clone_urls = clone_urls[:2]