From f4ce1737d90fe7046aee71fbe1b574ddae067b48 Mon Sep 17 00:00:00 2001 From: Boris Kraut Date: Sun, 6 Mar 2016 11:14:14 +0100 Subject: [PATCH] import: use .git suffix only for repo-url --- fdroidserver/import.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fdroidserver/import.py b/fdroidserver/import.py index e1d69c3c..14f2f79d 100644 --- a/fdroidserver/import.py +++ b/fdroidserver/import.py @@ -97,10 +97,10 @@ def get_metadata_from_url(app, url): projecttype = 'gitlab' # git can be fussy with gitlab URLs unless they end in .git if url.endswith('.git'): - repo = url - else: - repo = url + '.git' + url = url[:-4] + repo = url + '.git' repotype = 'git' + app.WebSite = url app.SourceCode = url + '/tree/HEAD' app.IssueTracker = url + '/issues' elif url.startswith('https://bitbucket.org/'):