Maven SCM
  1. Maven SCM
  2. SCM-502

checking out a tag from a remote repository fails if the tag was not on the current branch

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.3
    • Component/s: maven-scm-provider-git
    • Labels:
      None

      Description

      Calling scm:checkout for a tag often results in a merge failure.

      This is caused by the fact that we do a git-pull prior to the checkout, but in fact for tags, we only shall do a git-fetch.

      This is due to the fact that the tag may be on a different branch, so merging this branch into the current branch in the local repository would destroy the local repository.

      Instead we should first do a git-fetch [fetchUrl] followed by a git-checkout tagname.

      This will create a 'detached HEAD' in the local repo which is exactly the way it should be in git.

        Activity

        Mark Struberg created issue -
        Mark Struberg made changes -
        Field Original Value New Value
        Assignee Mark Struberg [ struberg ]
        Mark Struberg made changes -
        Fix Version/s 1.3 [ 14523 ]
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 12:22:36 UTC 2015 [ 1428236556206 ]
        Mark Thomas made changes -
        Workflow jira [ 12725508 ] Default workflow, editable Closed status [ 12757831 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 01:08:37 UTC 2015 [ 1428282517778 ]
        Mark Thomas made changes -
        Workflow jira [ 12962814 ] Default workflow, editable Closed status [ 12999020 ]

          People

          • Assignee:
            Mark Struberg
            Reporter:
            Mark Struberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development