Skip to content

bundleuri: Fix bundle creationToken to 1

Toon Claes requested to merge toon-bundleuri-creationtoken-1 into master

Gitaly uses only one bundle URI bundle, and it's a bundle that contains the full history up to the point when the bundle was generated. When the client is enabled to download bundle URIs on git-fetch(1) (see git#271), we want to avoid it to download that bundle, because the client probably has most of the history already.

Thus we set creationToken to a fixed value "1". When Git fetches the bundle URI, it saved this value to fetch.bundleCreationToken in the repository's git config. The next time Git attempts to fetch bundles, it ignores all bundles with creationToken lower or equal to the saved value.

Label: feature::enhancement Issue: #6192 (closed)

Merge request reports