mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-19 19:40:17 +02:00
Another correction
This commit is contained in:
parent
88322f5835
commit
98263a429d
@ -130,10 +130,10 @@ class vcs_git(vcs):
|
|||||||
class vcs_gitsvn(vcs):
|
class vcs_gitsvn(vcs):
|
||||||
|
|
||||||
def checkrepo(self):
|
def checkrepo(self):
|
||||||
p = subprocess.Popen('git', 'rev-parse', '--show-toplevel',
|
p = subprocess.Popen(['git', 'rev-parse', '--show-toplevel'],
|
||||||
stdout=subprocess.PIPE)
|
stdout=subprocess.PIPE, cwd=self.local)
|
||||||
result = p.communicate()[0].rstrip()
|
result = p.communicate()[0].rstrip()
|
||||||
if not self.local.endswith(result):
|
if not result.endswith(self.local):
|
||||||
raise VCSException('Repository mismatch')
|
raise VCSException('Repository mismatch')
|
||||||
|
|
||||||
def clone(self):
|
def clone(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user