Allow shallow cloning when determining versions #4559
joaopbnogueira
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
No there is no option. If you like you can do a proof of concept by removing the following check: GitVersion/src/GitVersion.Core/Core/GitPreparer.cs Lines 191 to 194 in 388b4a3 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While I understand why GitVersion asks for a full clone of the repo, this quickly becomes extremely slow on larger repositories that can take up to 10minutes just for a clone/checkout due to a huge history.
Being able to limit the depth is crucial in these situations to have fast CI pipelines.
In my example I'm using tags and conventional commits to determine the next version and don't really need the full history as I'm quite confident all necessary information is present in, say, the previous 200 commits, so having to fetch all history is wasteful.
Is there any flag or option to allow these shallower checkouts?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions