Skip to content

Option to prune tags on fetch #2227

@CDTR-MattConroy

Description

@CDTR-MattConroy

Occasionally (but rarely) tags are pushed that are then deleted. I use Git tags for my versioning, meaning if I ever re-tag the same commit again to trigger a workflow, persistent build agents will still be aware of the old tags on that commit that only exist locally.
Could there an option (perhaps, I would argue, by default) to git fetch --prune --prune-tags on checkout to ensure tags that no longer exist in the remote exist locally?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions