From 6876e28bb41f16b676628d7274da6c4b1b799a41 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 2 Mar 2018 11:06:26 +0100 Subject: [PATCH] hg: use /bin/false to clarify that it is an executable --- fdroidserver/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index b943fc50..93a6945f 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1116,7 +1116,7 @@ class vcs_hg(vcs): def gotorevisionx(self, rev): if not os.path.exists(self.local): - p = FDroidPopen(['hg', 'clone', '--ssh', 'false', '--', self.remote, self.local], + p = FDroidPopen(['hg', 'clone', '--ssh', '/bin/false', '--', self.remote, self.local], output=False) if p.returncode != 0: self.clone_failed = True @@ -1130,7 +1130,7 @@ class vcs_hg(vcs): raise VCSException("Unexpected output from hg status -uS: " + line) FDroidPopen(['rm', '-rf', '--', line[2:]], cwd=self.local, output=False) if not self.refreshed: - p = FDroidPopen(['hg', 'pull', '--ssh', 'false'], cwd=self.local, output=False) + p = FDroidPopen(['hg', 'pull', '--ssh', '/bin/false'], cwd=self.local, output=False) if p.returncode != 0: raise VCSException("Hg pull failed", p.output) self.refreshed = True -- 2.30.2