Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions odoo_repository/lib/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def _clone_params(self, **extra):
# Not applied when authenticating with an SSH key: they are fetched
# on demand outside of clone/fetch operations would fail, as
# 'GIT_SSH_COMMAND' is not set for these operations.
params["filter"] = "tree:0"
params["filter"] = "blob:none"
if self.branches:
params["branch"] = self.branches[0]
params.update(extra)
Expand Down Expand Up @@ -540,7 +540,9 @@ def sync(self, fetch=True):
# Also enable the partialclonefilter option as the initial remote
with repo.config_writer() as writer:
writer.set_value(
f"remote.{self.new_repo_name}", "partialclonefilter", "tree:0"
f"remote.{self.new_repo_name}",
"partialclonefilter",
"blob:none",
)
return res

Expand Down
Loading