chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87c326c
)
import: fix raw git-over-https urls
author
Boris Kraut
<krt@nurfuerspam.de>
Wed, 21 Dec 2016 09:12:20 +0000
(10:12 +0100)
committer
Boris Kraut
<krt@nurfuerspam.de>
Wed, 21 Dec 2016 09:12:20 +0000
(10:12 +0100)
fdroidserver/import.py
patch
|
blob
|
history
diff --git
a/fdroidserver/import.py
b/fdroidserver/import.py
index 60146536c3a162bb45ce1e9dcc27451ca0e4972b..5ba4323cf1625c311425d0140f0536affcab390e 100644
(file)
--- a/
fdroidserver/import.py
+++ b/
fdroidserver/import.py
@@
-116,6
+116,12
@@
def get_metadata_from_url(app, url):
if not repotype:
logging.error("Unable to determine vcs type. " + repo)
sys.exit(1)
+ elif url.startswith('https://') and url.endswith('.git'):
+ projecttype = 'git'
+ repo = url
+ repotype = 'git'
+ app.SourceCode = ""
+ app.WebSite = ""
if not projecttype:
logging.error("Unable to determine the project type.")
logging.error("The URL you supplied was not in one of the supported formats. Please consult")