chiark / gitweb /
Avoid newlines in git-svn RepoTrunk
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 30 Oct 2013 20:40:48 +0000 (21:40 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 30 Oct 2013 20:40:48 +0000 (21:40 +0100)
fdroidserver/common.py

index 6c066314a76090f7b991b9c285b800df3b4a80c9..a21281aa6cf9affee4e81ce9417a5cb2189c1f11 100644 (file)
@@ -295,7 +295,7 @@ class vcs_gitsvn(vcs):
         self.checkrepo()
         p = subprocess.Popen(['git', 'svn', 'find-rev', 'HEAD'],
                 stdout=subprocess.PIPE, cwd=self.local)
-        return p.communicate()[0]
+        return p.communicate()[0].strip()
 
 class vcs_svn(vcs):