Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312053 - Support for checking out remote branches and tags
Summary: Support for checking out remote branches and tags
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 0.7.1   Edit
Hardware: PC Windows Vista
: P3 major (vote)
Target Milestone: 0.8.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-07 09:04 EDT by Mathias Kinzler CLA
Modified: 2010-05-18 13:04 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Kinzler CLA 2010-05-07 09:04:45 EDT
The (Egit) BranchOperation currently only works correctly for local branches. You can execute it for remote branches or tags as well, but the result is quite different from what happens in msysgit: HEAD points to the remote branch or the tag, respectively, while in msysgit, HEAD points to the commit referenced by the remote branch/head.
Before we can fix BranchOperation, we need a way to update HEAD in such a way as to point to a commit. At the moment, RefUpdate is used for updating HEAD, but the only method there is link(String) which requires are ref name.
Please provide some API to allow fixing the issues with BranchOperation.
Comment 1 Mathias Kinzler CLA 2010-05-11 09:48:26 EDT
http://egit.eclipse.org/r/680
Comment 2 Mathias Kinzler CLA 2010-05-11 09:52:30 EDT
The change above is just the first part of this: it fixes the BranchOperation class. The second part is to enable the checkout for tags in the UI.
Comment 3 Chris Aniszczyk CLA 2010-05-11 14:29:47 EDT
Pushed Ie24ab3ac to master.
Comment 4 Mathias Kinzler CLA 2010-05-18 13:04:23 EDT
With http://egit.eclipse.org/r/718, this should be fixed.
Commit: 3813c0d8461221ad482270369791cd79a89d4c1a