1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 02:50:12 +01:00

Minor fixes to git-svn

This commit is contained in:
Daniel Martí 2013-10-31 15:54:52 +01:00
parent 6bff3f4e77
commit ec58f6e313

View File

@ -230,11 +230,11 @@ class vcs_gitsvn(vcs):
remote_split = self.remote.split(';') remote_split = self.remote.split(';')
for i in remote_split[1:]: for i in remote_split[1:]:
if i.startswith('trunk='): if i.startswith('trunk='):
gitsvn_cmd += '-T %s' % i[6:] gitsvn_cmd += ' -T %s' % i[6:]
elif i.startswith('tags='): elif i.startswith('tags='):
gitsvn_cmd += '-t %s', i[5:] gitsvn_cmd += ' -t %s' % i[5:]
elif i.startswith('branches='): elif i.startswith('branches='):
gitsvn_cmd += '-b %s' % i[9:] gitsvn_cmd += ' -b %s' % i[9:]
if subprocess.call([gitsvn_cmd + " %s %s" % (remote_split[0], self.local)], if subprocess.call([gitsvn_cmd + " %s %s" % (remote_split[0], self.local)],
shell=True) != 0: shell=True) != 0:
raise VCSException("Git clone failed") raise VCSException("Git clone failed")