1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-03 17:50:11 +02:00

Don't output when checking repo

This commit is contained in:
Daniel Martí 2014-01-31 11:40:03 +01:00
parent 5525c5cd5f
commit 18ef1b53bc

View File

@ -294,7 +294,8 @@ class vcs_git(vcs):
# fdroidserver) and then we'll proceed to destroy it! This is called as
# a safety check.
def checkrepo(self):
p = FDroidPopen(['git', 'rev-parse', '--show-toplevel'], cwd=self.local)
p = FDroidPopen(['git', 'rev-parse', '--show-toplevel'],
cwd=self.local, output=False)
result = p.stdout.rstrip()
if not result.endswith(self.local):
raise VCSException('Repository mismatch')
@ -369,7 +370,8 @@ class vcs_gitsvn(vcs):
# fdroidserver) and then we'll proceed to destory it! This is called as
# a safety check.
def checkrepo(self):
p = FDroidPopen(['git', 'rev-parse', '--show-toplevel'], cwd=self.local)
p = FDroidPopen(['git', 'rev-parse', '--show-toplevel'],
cwd=self.local, output=False)
result = p.stdout.rstrip()
if not result.endswith(self.local):
raise VCSException('Repository mismatch')