Bug 388929 - "Getting HEAD commit failed" in commit dialog on empty repository
Summary: "Getting HEAD commit failed" in commit dialog on empty repository
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 2.1   Edit
Assignee: Robin Stocker CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-06 07:52 EDT by Nicolas Bros CLA
Modified: 2012-09-07 18:43 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 Nicolas Bros CLA 2012-09-06 07:52:19 EDT
- clone an empty git repository
- share an Eclipse project into that repository
- right-click the project and select "Team > Commit"
- double-click one of the files in the commit dialog

You get the error message "Getting HEAD commit failed".
Instead, EGit should show a compare dialog with only the workspace file, and no remote file.


Eclipse SDK
Version: 4.2.0
Build id: I20120608-1400
EGit 2.1.0.201208301123
Comment 1 Robin Stocker CLA 2012-09-06 17:03:15 EDT
Fix pushed:

https://git.eclipse.org/r/7649
https://git.eclipse.org/r/7650
Comment 2 Matthias Sohn CLA 2012-09-07 18:43:12 EDT
merged as
84a00808721c8b42302c5e26bcbd8f9b5d7a46a3
5b6715a06cc1ce592586072282c02acb0f53700e