Bug 372001 - EGit fails to display a wizard page
Summary: EGit fails to display a wizard page
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-19 16:50 EST by Patrick 2000 CLA
Modified: 2012-02-23 20:25 EST (History)
0 users

See Also:


Attachments
The mentioned error log message (9.33 KB, text/plain)
2012-02-19 16:55 EST, Patrick 2000 CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick 2000 CLA 2012-02-19 16:50:20 EST
Build Identifier: 20110916-0149

I have a project and want to share it using git.

So I right-click on the project, and choose "Share project..." from the "Team" submenu.

Then I choose "Git", and click "Finish" (or "Next"?).

At this point _nothing_ happens.





Although, much later I figured out it must be a bug and found that eclipse creates a log file and "something" actually happens: an error log message is written to the log file.

On a sidenote I don't understand why the error message isn't shown to the user. It took me ages to realize that this is a bug and find the log message! Why is it not just displayed ??? Or at least an error could be printed to stderr!?

Reproducible: Always

Steps to Reproduce:
I'll tell you the reason, which I figured out after downloading and reading the sources.

I have a symlink in my unix "/" root folder, called "/.git", that points to a git repository where i keep track of config file changes in my system.

E/JGit is looking for a git repository in one of the workspace's parent folders, arives at mv /.git symlink, follows it and forgets where it came from. Then it thinks that the repository in which it landed must be a bare repository, which is too much for our simple-minded wizard to take, who just wanted to ... I haven't really figured out yet! ;-)

Anyway, removing the /.git symlink fixes the problem, but I'd rather see the bug fixed in the long run. Shouldn't be too hard to do. But I'm not the author of the original code and specifically, I wonder why the wizard interface even allows it to be thrown from the "createControl()" function. I.e. shouldn't the exception be caught by the plugin ( or, as said, otherwise at least be displayed to the user by eclipse... ???)
Comment 1 Patrick 2000 CLA 2012-02-19 16:55:01 EST
Created attachment 211249 [details]
The mentioned error log message