Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325315 - EGit HEAD points to a specific commit after a rebase
Summary: EGit HEAD points to a specific commit after a rebase
Status: RESOLVED INVALID
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 0.9.0   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Matthias Sohn CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-15 04:03 EDT by Auke Schrijnen CLA
Modified: 2013-05-05 14:20 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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