Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » JGIT Pull NoHeadException
JGIT Pull NoHeadException [message #1077771] Fri, 02 August 2013 05:51 Go to next message
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);
            git.pull().call();
    }


I get the following runtime exception:

org.eclipse.jgit.api.errors.NoHeadException: Pull on repository without HEAD currently not supported
at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:161)


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
Re: JGIT Pull NoHeadException [message #1077788 is a reply to message #1077771] Fri, 02 August 2013 06:28 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Berend,

Best to ask on the egit forum.

On 02/08/2013 8:00 AM, Berend van Veenendaal wrote:
> 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);
> git.pull().call();
> }
>
> I get the following runtime exception:
>
> org.eclipse.jgit.api.errors.NoHeadException: Pull on repository
> without HEAD currently not supported
> at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:161)
>
> 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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: JGIT Pull NoHeadException [message #1077799 is a reply to message #1077788] Fri, 02 August 2013 06:49 Go to previous message
Berend van Veenendaal is currently offline Berend van VeenendaalFriend
Messages: 3
Registered: August 2013
Junior Member
Thanks Ed,

I've moved the question to the EGIT forum


-Berend
Previous Topic:Problem Installing Eclipse IDE for C++ developers on Mac Os 10.6.8
Next Topic:java.lang.NullPointerException
Goto Forum:
  


Current Time: Thu Apr 25 21:31:02 GMT 2024

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

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

Back to the top