mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 06:52:39 +03:00
Multiple corrections to previous commit
This commit is contained in:
parent
cabd2c5522
commit
88322f5835
1 changed files with 3 additions and 3 deletions
|
@ -86,10 +86,10 @@ class vcs:
|
||||||
class vcs_git(vcs):
|
class vcs_git(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…
Add table
Add a link
Reference in a new issue