From: Ciaran Gultnieks Date: Tue, 18 Sep 2012 09:06:34 +0000 (+0100) Subject: Rejects bad import url for github X-Git-Tag: 0.1~747^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f0c6402062ec4d0be161c9490b75eea44dc678de;p=fdroidserver.git Rejects bad import url for github --- 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'