Home » Eclipse Projects » EGit / JGit » Cloning from existing repository
Cloning from existing repository [message #708322] |
Tue, 02 August 2011 17:15 |
|
(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 14:10 |
|
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 16:39 |
|
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 #714169 is a reply to message #714114] |
Wed, 10 August 2011 00:20 |
|
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] |
Wed, 10 August 2011 00:48 |
|
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 #714414 is a reply to message #714203] |
Wed, 10 August 2011 13:38 |
|
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 13:38 |
|
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 #715169 is a reply to message #715095] |
Fri, 12 August 2011 15:13 |
|
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).
|
|
| |
Goto Forum:
Current Time: Fri Apr 19 19:42:16 GMT 2024
Powered by FUDForum. Page generated in 0.03550 seconds
|