Merge pull request !2739 from rhodecode-enterprise-ce clone-ssh-fix
Changes from branch: Clone ssh fix
This commit is contained in:
commit
13e87e0483
1 changed files with 2 additions and 5 deletions
|
|
@ -40,12 +40,9 @@ 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)
|
||||
log.info("Final CMD: %s", command)
|
||||
return command
|
||||
|
||||
def run(self, extras):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue