Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Clone empty remote repository -> Null pointer exception
Clone empty remote repository -> Null pointer exception [message #663101] Sun, 03 April 2011 15:49 Go to next message
Frank  is currently offline Frank Friend
Messages: 3
Registered: September 2010
Junior Member
Hello,

I'm using eclipse 3.6 and EGit 0.11.3.
On the remote linux git server is git (1.7.0.4) and gitosis installed.
I cloned the gitosis-admin.git repo and added a new project to the gitosis.conf. Then I successfully pushed that to the remote server.
I tried to clone that none existing project with Eclipse but I got a Null pointer Exception. The project folder was created on the remote server (in /srv/gitosis/repositories) but I cannot clone this empty project.
Is this a known bug?

As a workaround I initialized the project directly on the remote server.
Re: Clone empty remote repository -> Null pointer exception [message #663127 is a reply to message #663101] Sun, 03 April 2011 20:37 Go to previous messageGo to next message
Manuel Doninger is currently offline Manuel DoningerFriend
Messages: 119
Registered: October 2010
Senior Member
Can you clone a new project with the command line Git?
Re: Clone empty remote repository -> Null pointer exception [message #663232 is a reply to message #663127] Mon, 04 April 2011 12:36 Go to previous messageGo to next message
Frank  is currently offline Frank Friend
Messages: 3
Registered: September 2010
Junior Member
Yes, that works.
Re: Clone empty remote repository -> Null pointer exception [message #664739 is a reply to message #663101] Mon, 11 April 2011 18:49 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 3
Registered: April 2011
Junior Member
This seems to be a known limitation of egit (and it used to be an limitation of git as well until recently). Workarounds are either your method or simply adding an empty file (or a .gitignore etc) to the repository to make it no longer empty.
Re: Clone empty remote repository -> Null pointer exception [message #664818 is a reply to message #664739] Tue, 12 April 2011 07:59 Go to previous message
Frank  is currently offline Frank Friend
Messages: 3
Registered: September 2010
Junior Member
Hello,

thanks for the answer. Ok, maybe this limitation/bug will be fixed in the future.

Best regards

Frank
Previous Topic:Java Heap Space Error while fetch
Next Topic:How to merge branches without fastforward?
Goto Forum:
  


Current Time: Tue Apr 16 15:33:44 GMT 2024

Powered by FUDForum. Page generated in 0.33299 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top