Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » fetchResult not working for Jgit (4.9.2.201712150930-r)(When try to run this etchResult.getTrackingRefUpdates() giving value but not actually change/create a tags )
fetchResult not working for Jgit (4.9.2.201712150930-r) [message #1786798] Fri, 11 May 2018 22:38 Go to next message
Tejendra Patel is currently offline Tejendra PatelFriend
Messages: 1
Registered: May 2018
Junior Member
Quote:

FetchResult fetchResult = git.fetch().
setRemote(remoteRepo).
setProgressMonitor(new GitProgressMonitor(retval, getStatusMonitorManager())).
setRemoveDeletedRefs(true).
setCheckFetchedObjects(true).
call();


In above code give a not Empty result. In fact i am able to see all tag when i try to print "(" *** fetchResult *** : " + !fetchResult.getTrackingRefUpdates().isEmpty())". I get all tags list which fetched. But when i see in actually folder that no tag is transfered.
Let me know if you need more info?
Re: fetchResult not working for Jgit (4.9.2.201712150930-r) [message #1786883 is a reply to message #1786798] Mon, 14 May 2018 20:13 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
I don't understand how
"(" *** fetchResult *** : " + !fetchResult.getTrackingRefUpdates().isEmpty())"
can print all tags.

If you don't call any of the setRefSpec() methods the behavior of fetch depends on the refspecs configured in .git/config

In which folder do you see that no tag were transferred ?
I'd rather run "git tag" or "git tag -l" to list tags in a repository.
Previous Topic:Encrypting git repositories in Eclipse
Next Topic:EGit could not detect where Git is installed
Goto Forum:
  


Current Time: Tue Apr 23 09:36:59 GMT 2024

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

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

Back to the top