Skip to content

Bug: tag_only: true should only push the specified tag, not all tags/branches #302

@willhughes-au

Description

@willhughes-au

In a pipeline with:

      - put: git-repo
        params:
          repository: git-repo
          tag: git-tag/tag.txt 
          tag_only: true 

You use the following command:

push_tags() {
  git push --tags push-target $forceflag
}

Which can result in trying to push all tags, and also push branches.

Instead you should push just the specific tag.
For example:

push_tags() {
  git push push-target $tag_name $forceflag
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions