Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » fetchResult not working for Jgit ( try to run this etchResult.getTrackingRefUpdates() giving value but not actually change/create a tags )
fetchResult not working for Jgit ( [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

FetchResult fetchResult = git.fetch().
setProgressMonitor(new GitProgressMonitor(retval, getStatusMonitorManager())).

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 ( [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: 1121
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:Algorithm negotiation fail with version 4.11
Goto Forum:

Current Time: Tue Feb 18 15:24:38 GMT 2020

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

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

Back to the top