Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331308 - Error message when trying to open history of empty Git repository
Summary: Error message when trying to open history of empty Git repository
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 338053 342222 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-29 04:23 EST by Philipp Thun CLA
Modified: 2011-04-19 07:00 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Thun CLA 2010-11-29 04:23:38 EST
Build Identifier: 20100917-0705

When trying to display the history of an empty Git repository in EGit an error pops up (Problem Occurred / Cannot parse HEAD in: <Project>) and an entry is written to the Error Log.

Although this behavior is somewhat consistent with C Git (git log -> fatal: bad default revision 'HEAD') and Gitk (Error parsing revisions: unknown revision HEAD), I would expect the EGit plugin to handle this situation in a more user-friendly manner. The best option would be to disable the "Show in History" entry in the context menu of a repository, project, folder or file.

Reproducible: Always

Steps to Reproduce:
1. Create a new, empty project
2. Share as Git project / create empty repository (Context menu on project -> Team -> Share Project... -> Git -> Create Repository)
3. Display history (Context menu on project -> Team -> Show in History)
Comment 1 Matthias Sohn CLA 2011-02-26 17:32:41 EST
*** Bug 338053 has been marked as a duplicate of this bug. ***
Comment 2 Matthias Sohn CLA 2011-02-26 17:33:31 EST
fixed with ba7fdc87ed4db862a56136eedef6f6501322b748
Comment 3 Matthias Sohn CLA 2011-04-19 07:00:13 EDT
*** Bug 342222 has been marked as a duplicate of this bug. ***