Closed kzadorozhny closed 5 months ago
Optimize git commands used by the create_gitops_prs tool to support referencing shallow repository clones via --mirror parameter.
create_gitops_prs
--mirror
Replace gitops repository clone command:
git clone --no-checkout --reference <mirrorDir> <repo> <gitopsWorkDir>
with the sequence of commands:
git clone --no-checkout --single-branch --branch <primaryBranch> --filter=blob:none --no-tags --reference <mirrorDir> <repo> <gitopsWorkDir> git fetch --force --filter=blob:none --no-tags origin +refs/heads/deploy/*:refs/remotes/origin/deploy/*
Optimize git commands used by the
create_gitops_prs
tool to support referencing shallow repository clones via--mirror
parameter.Replace gitops repository clone command:
with the sequence of commands: