Skip to content

[BUG]: Git partial clone is not working for submodules in checkout step #5452

@Flesiu

Description

@Flesiu

What happened?

The fetchFilter parameter is applied only to the root repository which causes full checkout of large submodules.
It should be also applied to submodules if they are set to true or recursive.
Now the following example does not apply fetchFilter to submodules:

      - checkout: self
        submodules: recursive
        fetchFilter: blob:none

Changes from Handle filter option for treeless or blobless git fetches by jnilau · Pull Request #4693 · microsof… to parse and add --filter option should also be added to azure-pipelines-agent/src/Agent.Plugins/GitCliManager.cs at master · microsoft/azure-pipelines-agent similar to fetchDepth option.

Versions

Azure DevOps version 4.264.2 / Windows 10

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

No response

Version controll system

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions