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:
c80c1bf
)
import: append .git to gitlab URLs, git sometimes freaks out otherwise
author
Hans-Christoph Steiner
<hans@eds.org>
Wed, 5 Aug 2015 19:54:25 +0000
(21:54 +0200)
committer
Hans-Christoph Steiner
<hans@eds.org>
Thu, 10 Sep 2015 09:08:39 +0000
(11:08 +0200)
From my experience, gitlab URLs need to end in .git for git to always be
happy using them.
fdroidserver/import.py
patch
|
blob
|
history
diff --git
a/fdroidserver/import.py
b/fdroidserver/import.py
index 5c6fbe485c5850078823fbbc444888d6e9dd5aeb..1debd2161a2e98f201075329f7a69a6f31163da0 100644
(file)
--- a/
fdroidserver/import.py
+++ b/
fdroidserver/import.py
@@
-95,7
+95,11
@@
def get_metadata_from_url(app, url):
app['Web Site'] = ""
elif url.startswith('https://gitlab.com/'):
projecttype = 'gitlab'
- repo = url
+ # git can be fussy with gitlab URLs unless they end in .git
+ if url.endswith('.git'):
+ repo = url
+ else:
+ repo = url + '.git'
repotype = 'git'
app['Source Code'] = url + '/tree/HEAD'
app['issuetracker'] = url + '/issues'