mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
remotefilelogserver: disable remotefilelog serving over non-ssh protocols
This commit is contained in:
parent
e2d021637c
commit
4e4a3a3a7b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user