Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Check Git connection
Check Git connection [message #1389048] Fri, 27 June 2014 09:00 Go to next message
Lorenzo Isidori is currently offline Lorenzo IsidoriFriend
Messages: 5
Registered: June 2014
Junior Member

Hi,
I need a method to try to connect with my remote Git repository without execute more actions. Does this method exists?
Re: Check Git connection [message #1389408 is a reply to message #1389048] Fri, 27 June 2014 19:23 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Lorenzo Isidori skrev 2014-06-27 11.00:
> Hi,
> I need a method to try to connect with my remote Git repository without execute more actions. Does this method exists?

Not really, but a "git ls-remote origin /" should be fairly lightweight

-- robin
Re: Check Git connection [message #1393061 is a reply to message #1389408] Thu, 03 July 2014 07:23 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
You can use the org.eclipse.jgit.api.LsRemoteCommand to implement that using jgit.
Check the jgit unit tests or the egit source code for examples how to use that.
Previous Topic:checkout with symlinks
Next Topic:Pack file handle remains open after using a shared repository
Goto Forum:
  


Current Time: Thu Mar 28 13:09:46 GMT 2024

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

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

Back to the top