1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 22:40:12 +01:00

Fix Tags UCM on newer git-svn versions

This commit is contained in:
Daniel Martí 2014-07-18 12:12:16 +02:00
parent f5890646e6
commit d3ae163152

View File

@ -700,7 +700,10 @@ class vcs_gitsvn(vcs):
def gettags(self):
self.checkrepo()
return os.listdir(os.path.join(self.local, '.git/svn/refs/remotes/tags'))
for treeish in ['origin/', '']:
d = os.path.join(self.local, '.git', 'svn', 'refs', 'remotes', treeish, 'tags')
if os.path.isdir(d):
return os.listdir(d)
def getref(self):
self.checkrepo()