From f0c6402062ec4d0be161c9490b75eea44dc678de Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Tue, 18 Sep 2012 10:06:34 +0100 Subject: [PATCH] Rejects bad import url for github --- fdroidserver/import.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fdroidserver/import.py b/fdroidserver/import.py index 947a6b20..6ec83460 100644 --- a/fdroidserver/import.py +++ b/fdroidserver/import.py @@ -126,6 +126,9 @@ def main(): if url.startswith('https://github.com'): if url.endswith('/'): url = url[:-1] + if url.endswith('.git'): + print "A github URL should point to the project, not the git repo" + sys.exit(1) projecttype = 'github' repo = url + '.git' repotype = 'git' -- 2.30.2