Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325315

Summary: EGit HEAD points to a specific commit after a rebase
Product: [Technology] EGit Reporter: Auke Schrijnen <aschrijnen>
Component: CoreAssignee: Matthias Sohn <matthias.sohn>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: robin.rosenberg, stefan.lay
Version: 0.9.0   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Auke Schrijnen CLA 2010-09-15 04:03:19 EDT
When pulling commits from a remote with the command line tools EGit often changes the branch name to a specific commit instead of the name of the current branch.

Steps to reproduce:

# Assume we are on branch 'master' and are in sync with the remote
git reset --hard HEAD~10
touch TESTFILE;
for NR in {0..9} ; do echo $NR > TESTFILE; git add TESTFILE; git commit -m "TEST COMMIT $NR"; done
git pull --rebase

# Now Eclipse shows "[<repo name> <commit id>]" instead
# of "[<repo name> <branch name>]"

# A checkout of the current branch fixes the decorator
git checkout master
Comment 1 Robin Rosenberg CLA 2013-05-04 16:36:34 EDT
Closed due to being old. Possibly fixed.
Comment 2 Robin Rosenberg CLA 2013-05-05 14:12:30 EDT
I think I just stubled on this one ....
Comment 3 Robin Rosenberg CLA 2013-05-05 14:20:49 EDT
Bah