mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-19 03:30:12 +02:00
hg: use /bin/false to clarify that it is an executable
This commit is contained in:
parent
6cd8f2ffea
commit
6876e28bb4
@ -1116,7 +1116,7 @@ class vcs_hg(vcs):
|
|||||||
|
|
||||||
def gotorevisionx(self, rev):
|
def gotorevisionx(self, rev):
|
||||||
if not os.path.exists(self.local):
|
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)
|
output=False)
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
self.clone_failed = True
|
self.clone_failed = True
|
||||||
@ -1130,7 +1130,7 @@ class vcs_hg(vcs):
|
|||||||
raise VCSException("Unexpected output from hg status -uS: " + line)
|
raise VCSException("Unexpected output from hg status -uS: " + line)
|
||||||
FDroidPopen(['rm', '-rf', '--', line[2:]], cwd=self.local, output=False)
|
FDroidPopen(['rm', '-rf', '--', line[2:]], cwd=self.local, output=False)
|
||||||
if not self.refreshed:
|
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:
|
if p.returncode != 0:
|
||||||
raise VCSException("Hg pull failed", p.output)
|
raise VCSException("Hg pull failed", p.output)
|
||||||
self.refreshed = True
|
self.refreshed = True
|
||||||
|
Loading…
Reference in New Issue
Block a user