Skip to content

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

Merged
RobertWieczoreck merged 1 commit intomainfrom
add-fetch-tags-option
Sep 8, 2021
Merged

Add option to fetch tags even if fetch-depth > 0#1
RobertWieczoreck merged 1 commit intomainfrom
add-fetch-tags-option

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