Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Check Git connection
Check Git connection [message #1389048] Fri, 27 June 2014 05:00 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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 Jul 10 02:47:25 EDT 2025

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

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

Back to the top