Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-705

Git pushes tag ambigiously

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.1
    • 1.9
    • None

    Description

      When the "git push" is run to push the new tag to the repo is uses the ambigious form of just "root-0.0.1" where ${project.artifactId}=root and ${project.version}=0.0.1

      Like this is BAD form:

      ssh push ssh://git@git.domain.com/foobar.git root-0.0.1

      This is GOOD form:

      ssh push ssh://git@git.domain.com/foobar.git refs/tags/root-0.0.1

      To test this problem out simple create a new branch with the same name as the tag you are about to use.

      git branch root-0.0.1
      git push origin root-0.0.1
      git branch -av

      Now use the maven-release-plugin to try to make a git tag called 'root-0.0.1'.

      So it is correct to prefix the tags you push with the "refs/tags/" to that the repository know you are sending up a tag. This is never ambiguous.

      Attachments

        Activity

          People

            olamy Olivier Lamy
            dlmiles Darryl L. Miles
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: