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 #1

Merged
merged 1 commit into from
Sep 8, 2021

Conversation

RobertWieczoreck
Copy link
Owner

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.

@RobertWieczoreck RobertWieczoreck self-assigned this Sep 7, 2021
@RobertWieczoreck RobertWieczoreck force-pushed the add-fetch-tags-option branch 2 times, most recently from 624ebcf to cd86ed3 Compare September 7, 2021 21:12
@RobertWieczoreck
Copy link
Owner Author

Tested using a workflow in a separate branch that verifies function as well as backwards compatibility: See Run 3538714447.

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.

1 participant