JGIT Pull NoHeadException [message #1077771] |
Fri, 02 August 2013 05:51 |
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
|
|
|
Re: JGIT Pull NoHeadException [message #1077788 is a reply to message #1077771] |
Fri, 02 August 2013 06:28 |
Ed Merks 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/
|
|
|
|
Powered by
FUDForum. Page generated in 0.08594 seconds