1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

Multiple corrections to previous commit

This commit is contained in:
Ciaran Gultnieks 2012-01-08 14:13:41 +00:00
parent cabd2c5522
commit 88322f5835

View File

@ -86,10 +86,10 @@ class vcs:
class vcs_git(vcs):
def checkrepo(self):
p = subprocess.Popen('git', 'rev-parse', '--show-toplevel',
stdout=subprocess.PIPE)
p = subprocess.Popen(['git', 'rev-parse', '--show-toplevel'],
stdout=subprocess.PIPE, cwd=self.local)
result = p.communicate()[0].rstrip()
if not self.local.endswith(result):
if not result.endswith(self.local):
raise VCSException('Repository mismatch')
def clone(self):