chiark / gitweb /
hg: use /bin/false to clarify that it is an executable
authorHans-Christoph Steiner <hans@eds.org>
Fri, 2 Mar 2018 10:06:26 +0000 (11:06 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Mon, 5 Mar 2018 08:45:58 +0000 (09:45 +0100)
fdroidserver/common.py

index b943fc505edf3456ef960b531af4e798c9e5cd1a..93a6945f825aa16470d3860125d54bac729fdbd8 100644 (file)
@@ -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