Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Pull fails in both Jgit API and EGit eclipse plugin
Pull fails in both Jgit API and EGit eclipse plugin [message #759117] Sat, 26 November 2011 14:17 Go to next message
Hardik Shah is currently offline Hardik ShahFriend
Messages: 7
Registered: November 2011
Junior Member
I Used following code to pull changes using Jgit API
git.pull().call();

Also I had tried eclipse plugin to pull changes but it also fails.

It shows following error.

org.eclipse.jgit.api.errors.JGitInternalException: Could not get advertised Ref for branch refs/heads/master at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:245)

can you please guide me what wrong I am doing or is there a bug?


Thanks,
Hardik Shah
Re: Pull fails in both Jgit API and EGit eclipse plugin [message #759249 is a reply to message #759117] Mon, 28 November 2011 04:52 Go to previous messageGo to next message
Hardik Shah is currently offline Hardik ShahFriend
Messages: 7
Registered: November 2011
Junior Member
I Observed that this issue occurs with file protocol , I cloned one repository with git protocol , so that repository's pull working but the repository with file protocol has this issue.

can you guide what thing to do to pull from repository with file protocol.

Thanks,
Hardik Shah
Re: Pull fails in both Jgit API and EGit eclipse plugin [message #759422 is a reply to message #759249] Mon, 28 November 2011 15:53 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
if you are accessing the other repository via file protocol maybe some
files of the repository aren't visible to the caller due to restricted file
system permissions?
Re: Pull fails in both Jgit API and EGit eclipse plugin [message #759445 is a reply to message #759422] Mon, 28 November 2011 17:20 Go to previous message
Hardik Shah is currently offline Hardik ShahFriend
Messages: 7
Registered: November 2011
Junior Member
Thanks for the reply..

Actually Repository is not configured properly.
After configured following things are working now.

# git config branch.master.remote origin
# git config branch.master.merge refs/heads/


Thanks,
Hardik Shah
Previous Topic:How to ignore SSL certificates?
Next Topic:Collaboration and excluding files
Goto Forum:
  


Current Time: Tue Mar 19 09:37:04 GMT 2024

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

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

Back to the top