Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Cloning from existing repository
Cloning from existing repository [message #708322] Tue, 02 August 2011 13:15 Go to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3052
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

(As seen elsewhere in this forum, I'm a newbie.)

In /etc/hosts, I have a line:

xxx.xxx.xxx.xxx af-blackpearl.site

for our local Git remote repository. Though I administer Git via a
gitolite-admin project, the filesystem path to the project I'd like to
clone on af-blackpearl.site is /home/git/repositories/myproject.git.

From the command line, I've long (and successfully) cloned from origin
thus:

git clone git:af-blackpearl.site:myproject

Despite looking at the EGit (Google-hosted) documentation, I'm having
trouble adapting this to

File -> Import... -> Git -> Projects from Git -> Clone -> URI

Using protocol git, I've tried various URIs:

git:af-blackpearl.site:myproject (can't click Next button)
git:af-blackpearl.site/myproject[.git] (with or without extension)

When I can click the Next button, I always get:

Cannot list the available branches.
Reason:
git:af-blackpearl.site/rest-server:ProxyHTTP: java.io.IOException:
proxy error: Service Unavailable

When I try:

git://af-blackpearl.site/myproject[.git] (with or without extension)
git://af-blackpearl.site/
git://af-blackpearl.site (can't click Next button)

and I can click the Next button, I always get something like:

Cannot list the available branches.
Reason:
git://af-blackpearl.site/myproject: Connection refused

I'd like a suggestion or two to follow up on.

Thanks.
Re: Cloning from existing repository [message #710876 is a reply to message #708322] Fri, 05 August 2011 10:10 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3052
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

Alternatively, my friends, I would appreciate criticism on what I asked
in my post or how I asked it. I would like to improve my tool chain by
using EGit, but I can do without it. Still, if my question on this
dialog box is just too idiotic to answer as it stands, please point me
at least in some little positive direction that might lead to ultimate
enlightenment. I can take the criticism; I just want to get it done.

Thanks,

Russ
Re: Cloning from existing repository [message #714043 is a reply to message #710876] Tue, 09 August 2011 12:39 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3052
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 05-Aug-11 08:10, Russell Bateman wrote:
> Alternatively, my friends, I would appreciate criticism on what I asked
> in my post or how I asked it. I would like to improve my tool chain by
> using EGit, but I can do without it. Still, if my question on this
> dialog box is just too idiotic to answer as it stands, please point me
> at least in some little positive direction that might lead to ultimate
> enlightenment. I can take the criticism; I just want to get it done.
>
> Thanks,
>
> Russ

Writing off EGit as unusable. The command line works well. Maybe I can
use the Team menu after command-line cloning, a hybrid approach.
Re: Cloning from existing repository [message #714114 is a reply to message #714043] Tue, 09 August 2011 16:26 Go to previous messageGo to next message
Manuel Doninger is currently offline Manuel Doninger
Messages: 119
Registered: October 2010
Senior Member
Did you check your SSH key configuration? Eclipse Helios uses another directory for ssh keys by default ($userhome\ssh instead of $userhome\.ssh, which is used by command line). Indigo points to .ssh by default.
Also, as an answer at Stackoverflow suggests, your URL should look like ssh://username@af-blackpearl.site/project
Re: Cloning from existing repository [message #714169 is a reply to message #714114] Tue, 09 August 2011 20:20 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3052
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 09-Aug-11 14:26, Manuel Doninger wrote:
> Did you check your SSH key configuration? Eclipse Helios uses another
> directory for ssh keys by default ($userhome\ssh instead of
> $userhome\.ssh, which is used by command line). Indigo points to .ssh by
> default.
> Also, as an answer at Stackoverflow suggests, your URL should look like
> ssh://username@af-blackpearl.site/project

As a matter of fact, I did check all of that, however, I am indeed using
..ssh and not ssh. (Still, I thought that was clear via
Window->Preferences->General->Network->SSH2; oh well.)

So, I'll look into this again tomorrow!

Profuse thanks.
Re: Cloning from existing repository [message #714184 is a reply to message #714114] Tue, 09 August 2011 20:48 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3052
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 09-Aug-11 14:26, Manuel Doninger wrote:
> Did you check your SSH key configuration? Eclipse Helios uses another
> directory for ssh keys by default ($userhome\ssh instead of
> $userhome\.ssh, which is used by command line). Indigo points to .ssh by
> default.
> Also, as an answer at Stackoverflow suggests, your URL should look like
> ssh://username@af-blackpearl.site/project

I created a link ssh -> .ssh on /home/russ. I verified anyway that
Window->Preferences->General->Network Connections->SSH2->SSH2 home was
set to /home/russ/.ssh and Private keys are id_dsa,id_rsa. In
subdirectory /home/russ/.ssh, I have id_rsa, id_rsa.pub, etc.

Then I did this:

URI: ssh://git@af-blackpearl.site/myproject
Host: af-blackpearl.site
Repository path: /myproject

Protocol: ssh

User: git

I still get:

Cannot list the available branches.

Reason:
ssh://git@af-blackpearl.site/myproject:
ProxyHTTP.java.io.IOException:
proxy error: Service unavailable

I also re-created ssh as a proper directory and copied id_rsa into it.
It made no difference.

Thanks.
Re: Cloning from existing repository [message #714203 is a reply to message #714184] Tue, 09 August 2011 23:28 Go to previous messageGo to next message
Manuel Doninger is currently offline Manuel Doninger
Messages: 119
Registered: October 2010
Senior Member
The Proxy error confuses me. Do you have configured a proxy server (although i think, that a proxy shouldn't apply for SSH connections)?
What EGit/JGit versions do you use?
Re: Cloning from existing repository [message #714414 is a reply to message #714203] Wed, 10 August 2011 09:38 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3052
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 09-Aug-11 21:28, Manuel Doninger wrote:
> The Proxy error confuses me. Do you have configured a proxy server
> (although i think, that a proxy shouldn't apply for SSH connections)?
> What EGit/JGit versions do you use?

I do have a proxy server for HTTP[S].

Eclipse EGit 1.0.0.201106090707-r
Re: Cloning from existing repository [message #714417 is a reply to message #714203] Wed, 10 August 2011 09:38 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3052
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 09-Aug-11 21:28, Manuel Doninger wrote:
> The Proxy error confuses me. Do you have configured a proxy server
> (although i think, that a proxy shouldn't apply for SSH connections)?
> What EGit/JGit versions do you use?

I do have a proxy server for HTTP[S].

Eclipse EGit 1.0.0.201106090707-r
Re: Cloning from existing repository [message #715095 is a reply to message #714414] Fri, 12 August 2011 06:56 Go to previous messageGo to next message
fschmitt  is currently offline fschmitt
Messages: 3
Registered: August 2011
Junior Member
Do you need that proxy to access af-blackpearl.site? I had a similar issue using ssh and gitosis, adding our scm server to the proxy bypass list (Preferences -> General -> Network Connections) worked for me.
Re: Cloning from existing repository [message #715169 is a reply to message #715095] Fri, 12 August 2011 11:13 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3052
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 12-Aug-11 04:56, fschmitt wrote:
> Do you need that proxy to access af-blackpearl.site? I had a similar
> issue using ssh and gitosis, adding our scm server to the proxy bypass
> list (Preferences -> General -> Network Connections) worked for me.

I don't think so, but I'm not an exhaustive expert in the matter. The
box on which my repository lives is nearby on an internal address (hence
the entry I report in /etc/hosts in my original post).
Re: Cloning from existing repository [message #715510 is a reply to message #715169] Sun, 14 August 2011 05:01 Go to previous message
Florian Schmitt is currently offline Florian Schmitt
Messages: 1
Registered: August 2011
Junior Member
if blackpearl.site is part of the internal network, you should add an proxy bypass. Usually, proxies are required only to reach external hosts. So, does it work with a proxy bypass defined?
Previous Topic:Newbie question: "refresh" projects after eclipse update?
Next Topic:Constructing in-memory push with jgit
Goto Forum:
  


Current Time: Wed Apr 23 17:49:40 EDT 2014

Powered by FUDForum. Page generated in 0.01924 seconds