Skip to content

Adds the ability to allow for shallow clones with a command line argument#285

Merged
matt-richardson merged 4 commits intoOctopusDeploy:mainfrom
iamwyza:issue-278-support-shallow-clones
Apr 4, 2026
Merged

Adds the ability to allow for shallow clones with a command line argument#285
matt-richardson merged 4 commits intoOctopusDeploy:mainfrom
iamwyza:issue-278-support-shallow-clones

Conversation

@iamwyza
Copy link
Copy Markdown
Contributor

@iamwyza iamwyza commented Mar 18, 2026

Closes #278.

Adds the ability to provide a new argument --AllowShallowClone=true to the octoversion command. When provided, this will allow octoversion to run when using git fetch --depth=X to get the branch history. The readme updates cover how this can be exercised. For extremely large git repos with long histories, this can cut the checkout time from > 1 minute to a few seconds.

@iamwyza iamwyza requested a review from a team as a code owner March 18, 2026 12:09
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 18, 2026

CLA assistant check
All committers have signed the CLA.

@iamwyza iamwyza mentioned this pull request Mar 18, 2026
Copy link
Copy Markdown
Contributor

@matt-richardson matt-richardson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one. Thanks for the contribution!

@matt-richardson matt-richardson merged commit 5698450 into OctopusDeploy:main Apr 4, 2026
3 of 4 checks passed
@octoreleasebot
Copy link
Copy Markdown

PR did not have successful (green) build statuses, as required by our PRGB policy.

Justification provided by matt.richardson (@matt-richardson) was:

It was a public PR that wouldn't trigger the full workflow (GHA was hiding secrets (which makes sense)), so the build would never be able to pass without major surgery.

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.

Support Shallow Clones

6 participants