mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +03:00
Rejects bad import url for github
This commit is contained in:
parent
a11d55620b
commit
f0c6402062
1 changed files with 3 additions and 0 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue