Skip to content

[release/v1.9.x] docs: correct the shallow clone claim for commit plus branch - #2148

Merged
matheuscscp merged 1 commit into
release/v1.9.xfrom
backport-2147-to-release/v1.9.x
Sep 1, 2026
Merged

[release/v1.9.x] docs: correct the shallow clone claim for commit plus branch#2148
matheuscscp merged 1 commit into
release/v1.9.xfrom
backport-2147-to-release/v1.9.x

Conversation

@fluxcdbot

Copy link
Copy Markdown
Member

Automated backport to release/v1.9.x, triggered by a label in #2147.

Combining .spec.ref.commit with .spec.ref.branch does not shallow clone.
cloneCommit in fluxcd/pkg/git/gogit sets no Depth at all, unlike the
branch, tag and semver paths, so a branch only narrows the clone to a
single branch and the full history of that branch is still fetched.

The wording predates the go-git and libgit2 split and has been inaccurate
since.

Signed-off-by: SaiPisey2 <piseysai0202@gmail.com>
(cherry picked from commit 2b0f0b1)
@matheuscscp
matheuscscp merged commit 8cddf74 into release/v1.9.x Sep 1, 2026
3 checks passed
@matheuscscp
matheuscscp deleted the backport-2147-to-release/v1.9.x branch September 1, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants