remotefilelogserver: disable remotefilelog serving over non-ssh protocols

This commit is contained in:
Augie Fackler 2015-06-29 16:34:31 -04:00
parent e2d021637c
commit 4e4a3a3a7b

View File

@ -175,6 +175,8 @@ def getfiles(repo, proto):
"""
if shallowrepo.requirement in repo.requirements:
raise util.Abort(_('cannot fetch remote files from shallow repo'))
if not isinstance(proto, sshserver.sshserver):
raise util.Abort(_('cannot fetch remote files over non-ssh protocol'))
def streamer():
fin = proto.fin