Skip to main content



      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 09:17 Go to next message
Eclipse UserFriend
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] Sun, 27 November 2011 23:52 Go to previous messageGo to next message
Eclipse UserFriend
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 10:53 Go to previous messageGo to next message
Eclipse UserFriend
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 12:20 Go to previous message
Eclipse UserFriend
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: Mon Jun 23 12:54:17 EDT 2025

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

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

Back to the top