Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Check Git connection
Check Git connection [message #1389048] Fri, 27 June 2014 05:00 Go to next message
Lorenzo Isidori is currently offline Lorenzo Isidori
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 15:23 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin Rosenberg
Messages: 319
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 03:23 Go to previous message
Matthias Sohn is currently offline Matthias Sohn
Messages: 556
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:Unable to install Egit for Eclipse
Goto Forum:
  


Current Time: Sat Aug 23 09:34:37 EDT 2014

Powered by FUDForum. Page generated in 0.01639 seconds