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
(from parent 1:
495b205
)
import: use .git suffix only for repo-url
author
Boris Kraut
<krt@nurfuerspam.de>
Sun, 6 Mar 2016 10:14:14 +0000
(11:14 +0100)
committer
Boris Kraut
<krt@nurfuerspam.de>
Sun, 6 Mar 2016 10:20:10 +0000
(11:20 +0100)
fdroidserver/import.py
patch
|
blob
|
history
diff --git
a/fdroidserver/import.py
b/fdroidserver/import.py
index e1d69c3c3eb91f63bcbf65469775d74ff8404735..14f2f79d4ca2d5aabc4e4d4c55972953b5634b2e 100644
(file)
--- 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/'):