Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » JGIT Pull NoHeadException
JGIT Pull NoHeadException [message #1077798] Fri, 02 August 2013 06:48
Berend van Veenendaal is currently offline Berend van VeenendaalFriend
Messages: 3
Registered: August 2013
Junior Member
When is try to execute the following method (uses JGIT library)

private void pullRepo() throws  IOException,GitAPIException, WrongRepositoryStateException, InvalidConfigurationException, DetachedHeadException, InvalidRemoteException, CanceledException, RefNotFoundException, NoHeadException{
            Git  git = new Git(localRepo);

I get the following runtime exception:

org.eclipse.jgit.api.errors.NoHeadException: Pull on repository without HEAD currently not supported

Does someone know how to solve this? The localRepo I use is the same as I use for the cloneRepository method ,which works perfectly.

thanks, bgvv1983
Previous Topic:JGit - Delete remote branch
Next Topic:How to view an old version of a non-text file?
Goto Forum:

Current Time: Tue Mar 28 00:51:30 GMT 2017

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

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