fix: config for ssh partial cloning
This commit is contained in:
parent
a8ec20b857
commit
56266cbc4f
1 changed files with 1 additions and 4 deletions
|
|
@ -40,10 +40,7 @@ class GitTunnelWrapper(object):
|
|||
def command(self):
|
||||
root = self.server.get_root_store()
|
||||
# Support for partial and shallow cloning
|
||||
if self.server.repo_mode == "upload-pack":
|
||||
git_server_config = " -c uploadpack.allowfilter=true -c uploadpack.allowAnySHA1InWant=true "
|
||||
else:
|
||||
git_server_config = " "
|
||||
git_server_config = " -c uploadpack.allowfilter=true -c uploadpack.allowAnySHA1InWant=true "
|
||||
command = f"cd {root}; {self.server.git_path}{git_server_config}{self.server.repo_mode} '{root}{self.server.repo_name}'"
|
||||
log.debug("Final CMD: %s", command)
|
||||
return command
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue