1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

branches= on git-svn + muliple arguments allowed

This commit is contained in:
Daniel Martí 2013-05-27 15:00:35 +02:00
parent 0c32a5be8b
commit d042a685ce

View File

@ -206,13 +206,11 @@ class vcs_gitsvn(vcs):
if len(remote_split) > 1:
for i in remote_split[1:]:
if i.startswith('trunk='):
trunk = i[6:]
gitsvn_cmd += ['-T', i[6:]]
elif i.startswith('tags='):
tags = i[5:]
if trunk:
gitsvn_cmd += ['-T', trunk]
if tags:
gitsvn_cmd += ['-t', tags]
gitsvn_cmd += ['-t', i[5:]]
elif i.startswith('branches='):
gitsvn_cmd += ['-b', i[9:]]
if subprocess.call(gitsvn_cmd + [remote_split[0], self.local]) != 0:
raise VCSException("Git clone failed")
else: