chiark / gitweb /
Don't add an extra space to git svn clone
authorDaniel Martí <mvdan@mvdan.cc>
Sun, 2 Mar 2014 12:39:48 +0000 (13:39 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Sun, 2 Mar 2014 12:39:48 +0000 (13:39 +0100)
fdroidserver/common.py

index 06a0d66a7fe0416a89dff754afea791980d3f62f..8ef38bb8351ab0c2a8208ffe20a36dec25be7d87 100644 (file)
@@ -372,7 +372,7 @@ class vcs_gitsvn(vcs):
     def userargs(self):
         if self.username is None:
             return ('', '')
-        return ('echo "%s" | DISPLAY="" ' % self.password, '--username "%s"' % self.username)
+        return ('echo "%s" | DISPLAY="" ' % self.password, ' --username "%s"' % self.username)
 
     # If the local directory exists, but is somehow not a git repository, git
     # will traverse up the directory tree until it finds one that is (i.e.
@@ -387,7 +387,7 @@ class vcs_gitsvn(vcs):
     def gotorevisionx(self, rev):
         if not os.path.exists(self.local):
             # Brand new checkout
-            gitsvn_cmd = '%sgit svn clone %s' % self.userargs()
+            gitsvn_cmd = '%sgit svn clone%s' % self.userargs()
             if ';' in self.remote:
                 remote_split = self.remote.split(';')
                 for i in remote_split[1:]: