chiark / gitweb /
branches= on git-svn + muliple arguments allowed
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 27 May 2013 13:00:35 +0000 (15:00 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 27 May 2013 13:03:42 +0000 (15:03 +0200)
fdroidserver/common.py

index ec9d7a9851866bcb1a0f6e39ea3d0f429364fdf2..914a900f707815dc7f1a31f6136aaa4cf9d7d291 100644 (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: