Using a private git repository with Metacello

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Using a private git repository with Metacello

Julien Delplanque
Hello,

Is it possible to use Metacello to load a Pharo project from a private
git repository hosted on bitbucket for example? If it is, how?

To load project from github I use:

Metacello new
    baseline: 'Project';
    repository: 'github://owner/reponame/repository';
    load.

Is there a prefix for a git repository that is not hosted on github?

Also, I think Metacello use HTTP to download the project, am I right? Is
it possible to make it use ssh?

Thanks in advance,

Julien

Reply | Threaded
Open this post in threaded view
|

Re: Using a private git repository with Metacello

Thierry Goubier
Hi Julien,

it should be possible on Linux and Mac OS by loading GitFileTree and
using an url like:
'gitfiletree://bitbucket.com/owner/reponame&protocol=git'.

Regards,

Thierry

Le 08/10/2014 10:44, Julien Delplanque a écrit :

> Hello,
>
> Is it possible to use Metacello to load a Pharo project from a private
> git repository hosted on bitbucket for example? If it is, how?
>
> To load project from github I use:
>
> Metacello new
>      baseline: 'Project';
>      repository: 'github://owner/reponame/repository';
>      load.
>
> Is there a prefix for a git repository that is not hosted on github?
>
> Also, I think Metacello use HTTP to download the project, am I right? Is
> it possible to make it use ssh?
>
> Thanks in advance,
>
> Julien
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Using a private git repository with Metacello

Dale Henrichs-3
In reply to this post by Julien Delplanque
Julien,

I recently added bitbucket:// support to metacello[1].

If you follow the installation instructions here[2], you can get the support loaded into Pharo3.0.

Dale

On Wed, Oct 8, 2014 at 1:44 AM, Julien Delplanque <[hidden email]> wrote:
Hello,

Is it possible to use Metacello to load a Pharo project from a private
git repository hosted on bitbucket for example? If it is, how?

To load project from github I use:

Metacello new
    baseline: 'Project';
    repository: 'github://owner/reponame/repository';
    load.

Is there a prefix for a git repository that is not hosted on github?

Also, I think Metacello use HTTP to download the project, am I right? Is
it possible to make it use ssh?

Thanks in advance,

Julien


Reply | Threaded
Open this post in threaded view
|

Re: Using a private git repository with Metacello

Julien Delplanque
Thanks a lot I'll try this out!

Julien


On 09/10/14 18:37, Dale Henrichs wrote:

> Julien,
>
> I recently added bitbucket:// support to metacello[1].
>
> If you follow the installation instructions here[2], you can get the
> support loaded into Pharo3.0.
>
> Dale
>
> [1] https://groups.google.com/forum/#!topic/metacello/0vOzvQL10cQ
> [2] https://github.com/dalehenrich/metacello-work#pharo30
>
> On Wed, Oct 8, 2014 at 1:44 AM, Julien Delplanque <[hidden email]> wrote:
>
>> Hello,
>>
>> Is it possible to use Metacello to load a Pharo project from a private
>> git repository hosted on bitbucket for example? If it is, how?
>>
>> To load project from github I use:
>>
>> Metacello new
>>     baseline: 'Project';
>>     repository: 'github://owner/reponame/repository';
>>     load.
>>
>> Is there a prefix for a git repository that is not hosted on github?
>>
>> Also, I think Metacello use HTTP to download the project, am I right? Is
>> it possible to make it use ssh?
>>
>> Thanks in advance,
>>
>> Julien
>>
>>


Reply | Threaded
Open this post in threaded view
|

Re: Using a private git repository with Metacello

Julien Delplanque
In reply to this post by Thierry Goubier
Sorry for the late response, I have been a bit busy these days,

I tried this but it didn't worked....

I'll try the Dale's solution soon.

However, thank you for the help ;)

Julien
On 09/10/14 07:09, Thierry Goubier wrote:

> Hi Julien,
>
> it should be possible on Linux and Mac OS by loading GitFileTree and
> using an url like:
> 'gitfiletree://bitbucket.com/owner/reponame&protocol=git'.
>
> Regards,
>
> Thierry
>
> Le 08/10/2014 10:44, Julien Delplanque a écrit :
>> Hello,
>>
>> Is it possible to use Metacello to load a Pharo project from a private
>> git repository hosted on bitbucket for example? If it is, how?
>>
>> To load project from github I use:
>>
>> Metacello new
>>      baseline: 'Project';
>>      repository: 'github://owner/reponame/repository';
>>      load.
>>
>> Is there a prefix for a git repository that is not hosted on github?
>>
>> Also, I think Metacello use HTTP to download the project, am I right? Is
>> it possible to make it use ssh?
>>
>> Thanks in advance,
>>
>> Julien
>>
>>
>>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Using a private git repository with Metacello

philippeback
In reply to this post by Julien Delplanque
Very nice to have BitBucket support!

Private repositories for free, that's golden.

Thx
Phil

On Sat, Oct 11, 2014 at 10:40 AM, Julien Delplanque <[hidden email]> wrote:
Thanks a lot I'll try this out!

Julien


On 09/10/14 18:37, Dale Henrichs wrote:
> Julien,
>
> I recently added bitbucket:// support to metacello[1].
>
> If you follow the installation instructions here[2], you can get the
> support loaded into Pharo3.0.
>
> Dale
>
> [1] https://groups.google.com/forum/#!topic/metacello/0vOzvQL10cQ
> [2] https://github.com/dalehenrich/metacello-work#pharo30
>
> On Wed, Oct 8, 2014 at 1:44 AM, Julien Delplanque <[hidden email]> wrote:
>
>> Hello,
>>
>> Is it possible to use Metacello to load a Pharo project from a private
>> git repository hosted on bitbucket for example? If it is, how?
>>
>> To load project from github I use:
>>
>> Metacello new
>>     baseline: 'Project';
>>     repository: 'github://owner/reponame/repository';
>>     load.
>>
>> Is there a prefix for a git repository that is not hosted on github?
>>
>> Also, I think Metacello use HTTP to download the project, am I right? Is
>> it possible to make it use ssh?
>>
>> Thanks in advance,
>>
>> Julien
>>
>>




Reply | Threaded
Open this post in threaded view
|

Re: Using a private git repository with Metacello

Thierry Goubier
In reply to this post by Julien Delplanque

Hi Julien,

What didn't work?

Thierry

Le 11 oct. 2014 10:44, "Julien Delplanque" <[hidden email]> a écrit :
>
> Sorry for the late response, I have been a bit busy these days,
>
> I tried this but it didn't worked....
>
> I'll try the Dale's solution soon.
>
> However, thank you for the help ;)
>
> Julien
> On 09/10/14 07:09, Thierry Goubier wrote:
> > Hi Julien,
> >
> > it should be possible on Linux and Mac OS by loading GitFileTree and
> > using an url like:
> > 'gitfiletree://bitbucket.com/owner/reponame&protocol=git'.
> >
> > Regards,
> >
> > Thierry
> >
> > Le 08/10/2014 10:44, Julien Delplanque a écrit :
> >> Hello,
> >>
> >> Is it possible to use Metacello to load a Pharo project from a private
> >> git repository hosted on bitbucket for example? If it is, how?
> >>
> >> To load project from github I use:
> >>
> >> Metacello new
> >>      baseline: 'Project';
> >>      repository: 'github://owner/reponame/repository';
> >>      load.
> >>
> >> Is there a prefix for a git repository that is not hosted on github?
> >>
> >> Also, I think Metacello use HTTP to download the project, am I right? Is
> >> it possible to make it use ssh?
> >>
> >> Thanks in advance,
> >>
> >> Julien
> >>
> >>
> >>
> >
> >
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Using a private git repository with Metacello

Julien Delplanque
Hi Thierry, Dale,

I get a ZnUnknownScheme whatever the solution I choose...

Are you sure it works for private repositories that need your ssh key
for auth?

Julien

Reply | Threaded
Open this post in threaded view
|

Re: Using a private git repository with Metacello

Thierry Goubier
Hi Julien,

for my part, it would probably mean that GitFileTree isn't loaded. Do you have a package named MonticelloFileTree-Git? I load it with:
         Gofer new
                url: 'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo30/main';
                configurationOf: 'GitFileTree';
                loadDevelopment

Thierry



2014-10-13 8:19 GMT+02:00 Julien Delplanque <[hidden email]>:
Hi Thierry, Dale,

I get a ZnUnknownScheme whatever the solution I choose...

Are you sure it works for private repositories that need your ssh key
for auth?

Julien


Reply | Threaded
Open this post in threaded view
|

Re: Using a private git repository with Metacello

Manfred Kröhnert
In reply to this post by Julien Delplanque
Hello Julien,

sorry for coming in so late.

On Mon, Oct 13, 2014 at 8:19 AM, Julien Delplanque <[hidden email]> wrote:
Hi Thierry, Dale,

I get a ZnUnknownScheme whatever the solution I choose...

Are you sure it works for private repositories that need your ssh key
for auth?

Julien

I have successfully been using GitFileTree with Pharo 3 on OS X 10.6.8 with private Git repositories.
The repositories are hosted on a private GitLab instance and the url required was of the form:

ssh://git@mygitlabserver/username/project.git

Everything worked fine after adding my ssh key to the ssh-agent by running the following line in a console:

ssh-add ~/.ssh/private_key

Maybe this helps.

Best,
Manfred