Skip to content

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

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
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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