Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360163 - Behaviour change when checking out branches
Summary: Behaviour change when checking out branches
Status: CLOSED DUPLICATE of bug 341679
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 1.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 15:46 EDT by DJ Houghton CLA
Modified: 2013-04-18 04:30 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DJ Houghton CLA 2011-10-06 15:46:58 EDT
Eclipse EGit - 1.2.0.201110050721
Eclipse SDK - 4.2.0.I20111004-2000

Recently I wanted to work on a maintenance branch for an Eclipse project, so this is what I did:
- cloned the Eclipse repo
- said I wanted to work from master before the clone
- after the clone in the Git Repo view right-click on the repo and say Switch To... -> Other...
- at this point I chose the remote R3_7_maintenance branch (it isn't listed locally)

Doing this operation doesn't seem to make a local copy of the branch to work in. Going to the command-line and typing:
  git branch
told me that I wasn't in a branch. 

I'm pretty sure this was the pattern that I followed in earlier workspaces to work in branches. 

To work around this I went to the command-line and typed:
   git checkout R3_7_maintenance
and it created the local copy for me and switched me to it.
Comment 1 Robin Rosenberg CLA 2013-04-17 19:35:18 EDT
Maybe the UI could assist newcomers better here
Comment 2 Robin Stocker CLA 2013-04-18 04:30:23 EDT
Let's look at this in bug 341679.

*** This bug has been marked as a duplicate of bug 341679 ***