Skip to content

Commit

Permalink
cachito: extend blobless cloning to submodules
Browse files Browse the repository at this point in the history
Extend the blobless cloning to submodules. This is done by adding the
"--filter=blob:none" option to the "git submodule update" command.
This will help in situations where cachito responds with a gateway
timeout when bundles of very large size (>2GB) are downloaded.

signed-off-by: Aravindh Puthiyaparambil <[email protected]>
  • Loading branch information
aravindhp authored and taylormadore committed Feb 5, 2024
1 parent 85463e3 commit 62b7234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cachito/workers/scm.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def update_git_submodules(self, repo):
update the git submodules.
"""
log.debug(f"Git submodules for the requested repo are: {repo.submodules}")
cmd = ["git", "submodule", "update", "--init"]
cmd = ["git", "submodule", "update", "--init", "--filter=blob:none"]
try:
run_cmd(cmd, {"cwd": repo.working_dir, "check": True})
except subprocess.CalledProcessError as exc:
Expand Down

0 comments on commit 62b7234

Please sign in to comment.