You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mark Struberg (JIRA)" <ji...@codehaus.org> on 2009/10/08 14:41:32 UTC

[jira] Closed: (SCM-502) checking out a tag from a remote repository fails if the tag was not on the current branch

     [ http://jira.codehaus.org/browse/SCM-502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg closed SCM-502.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 1.3

> checking out a tag from a remote repository fails if the tag was not on the current branch
> ------------------------------------------------------------------------------------------
>
>                 Key: SCM-502
>                 URL: http://jira.codehaus.org/browse/SCM-502
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-git
>    Affects Versions: 1.2
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 1.3
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira