Skip to main content



      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 11:49 Go to next message
Eclipse UserFriend
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 16:37 Go to previous messageGo to next message
Eclipse UserFriend
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 08:36 Go to previous messageGo to next message
Eclipse UserFriend
Yes, that works.
Re: Clone empty remote repository -> Null pointer exception [message #664739 is a reply to message #663101] Mon, 11 April 2011 14:49 Go to previous messageGo to next message
Eclipse UserFriend
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 03:59 Go to previous message
Eclipse UserFriend
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: Sun May 11 12:08:17 EDT 2025

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

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

Back to the top