Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-19847

Support for "git clone --filter" needed

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      We have mono repos with lots of configuration files separated into two axis that are modelled simply into a two-level directory tree (e.g. abc/xyz/file1, abc/xyz/file2, def/foo/file1, etc).

      Today, when we do a pipeline run for a combination (e.g. abc with xyz), we need to clone the entire repo which is around 1GB. However, the actual data with sparse-checkout then only nets around 10MB per such abc/xyz directory combination.

      With the "git clone --filter" support, the filtering would occur on the server side, meaning at the end of the day only 10MB would be transmitted, avoiding network transfer and speeding up our builds significantly.

      At the moment this filter is not implemented on bitbucket cloud:

      git clone --filter=combine:blob:none+tree:0 --no-checkout --branch ${DEPLOY_TARGET_BRANCH} ${REPO_URL}
      

      results in a warning:

      warning: filtering not recognized by server, ignoring
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              6c13d1799a88 Tanju Erinmez
              Votes:
              168 Vote for this issue
              Watchers:
              71 Start watching this issue

              Dates

                Created:
                Updated: