Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » JGIT Pull NoHeadException
JGIT Pull NoHeadException [message #1077798] Fri, 02 August 2013 02:48
Berend van Veenendaal is currently offline Berend van Veenendaal
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
Previous Topic:Does EGit use .git/info/exclude?
Next Topic:First time checkout of remote tracking branch
Goto Forum:
  


Current Time: Sun Apr 20 04:20:40 EDT 2014

Powered by FUDForum. Page generated in 0.13526 seconds