Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to fetch tags even if fetch-depth > 0 #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RobertWieczoreck
Copy link
Owner

@RobertWieczoreck RobertWieczoreck commented Nov 18, 2021

Same as #1 - only updated to the latest changes of the fork.

Adds an optional fetch-tags option that can be used to override the default behavior of adding the --no-tags arg to the generated git fetch command if fetch-depth is configured and not 0.
This way, users can use fetch-depth while still getting the tags inside this range, which can e.g. be important when using automatic GIT versioning plugins like jgitver.

The branch will be rebased to main from time to time, to get updated from the base repo.

Tested in Run #4424588924 in a real workflow (on a separate branch).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant