Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 375525 - ORIG_HEAD not set by "reset --hard"
Summary: ORIG_HEAD not set by "reset --hard"
Status: CLOSED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 1.3   Edit
Hardware: PC Windows XP
: P3 minor with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Kevin Sawicki CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-28 08:59 EDT by Jérôme de Vivie CLA
Modified: 2012-06-15 05:19 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 Jérôme de Vivie CLA 2012-03-28 08:59:51 EDT
Build Identifier: Eclipse modeling tool 3.7.1, build-id=20110916-0149, egit=1.3

After "reset --hard" command, we should have "ORIG_HEAD" set to previous value of HEAD. 

git does this but not Egit, so we have to use reflog instead.


BR
Jerome



Reproducible: Always
Comment 1 Kevin Sawicki CLA 2012-05-10 18:53:14 EDT
Proposed fix pushed to https://git.eclipse.org/r/5933
Comment 2 Kevin Sawicki CLA 2012-06-06 13:13:02 EDT
Merged into stable-2.0 in commit 058c74d8adcfb5ef0eed203a64b7f9ff65e87c8c
Comment 3 Jérôme de Vivie CLA 2012-06-15 05:19:57 EDT
Fix works. Thank you

BR
Jerome