mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03:00
branches= on git-svn + muliple arguments allowed
This commit is contained in:
parent
0c32a5be8b
commit
d042a685ce
1 changed files with 4 additions and 6 deletions
|
@ -206,13 +206,11 @@ class vcs_gitsvn(vcs):
|
||||||
if len(remote_split) > 1:
|
if len(remote_split) > 1:
|
||||||
for i in remote_split[1:]:
|
for i in remote_split[1:]:
|
||||||
if i.startswith('trunk='):
|
if i.startswith('trunk='):
|
||||||
trunk = i[6:]
|
gitsvn_cmd += ['-T', i[6:]]
|
||||||
elif i.startswith('tags='):
|
elif i.startswith('tags='):
|
||||||
tags = i[5:]
|
gitsvn_cmd += ['-t', i[5:]]
|
||||||
if trunk:
|
elif i.startswith('branches='):
|
||||||
gitsvn_cmd += ['-T', trunk]
|
gitsvn_cmd += ['-b', i[9:]]
|
||||||
if tags:
|
|
||||||
gitsvn_cmd += ['-t', tags]
|
|
||||||
if subprocess.call(gitsvn_cmd + [remote_split[0], self.local]) != 0:
|
if subprocess.call(gitsvn_cmd + [remote_split[0], self.local]) != 0:
|
||||||
raise VCSException("Git clone failed")
|
raise VCSException("Git clone failed")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue