[Pharo-users] Pharo + git workflow

Norbert Hartl norbert at hartl.name
Thu Jan 28 04:23:17 EST 2016


Hi Thierry,

> Am 27.01.2016 um 06:40 schrieb Thierry Goubier <thierry.goubier at gmail.com>:
> 
> Hi Norbert,
> 
> the development version on Pharo4 has the credentials working now. It switches to https instead of ssh if you add a username and a password, since a ssh url can't carry a password and, in the case of github, the ssh user is allways git.
> 
thanks very much. I need to find some time to try it out. I have kind of a workflow but that does only work if I use a single repository.

Norbert

> Thierry
> 
> Le 26/01/2016 13:32, Norbert Hartl a écrit :
>> 
>>> Am 26.01.2016 um 13:03 schrieb Norbert Hartl <norbert at hartl.name
>>> <mailto:norbert at hartl.name>>:
>>> 
>>>> 
>>>> Am 25.01.2016 um 23:32 schrieb Thierry Goubier
>>>> <thierry.goubier at gmail.com <mailto:thierry.goubier at gmail.com>>:
>>>> 
>>>> Le 25/01/2016 23:13, Norbert Hartl a écrit :
>>>>> 
>>>>>> Am 25.01.2016 um 23:02 schrieb Norbert Hartl <norbert at hartl.name
>>>>>> <mailto:norbert at hartl.name>>:
>>>>>> 
>>>>>> Hi,
>>>>>> 
>>>>>>> Am 25.01.2016 um 22:55 schrieb Thierry Goubier
>>>>>>> <thierry.goubier at gmail.com <mailto:thierry.goubier at gmail.com>>:
>>>>>>> 
>>>>>>> Hi Norbert,
>>>>>>> 
>>>>>>> Just tell me if you need any additional parameter to the git clone
>>>>>>> for the credentials, because I'm not sure I have written the code
>>>>>>> which will handle them.
>>>>>>> 
>>>>>> I'll check that. The easiest approach is to use the authority part
>>>>>> of the url like
>>>>>> 
>>>>>> https://user:pass@bitbucket.org/….
>>>> 
>>>> I'm nearly sure my code doesn't check for them and silently drop them :(
>>>> 
>>>>>> I try that tomorrow.
>>>>>> 
>>>>> But then I don't think that sub-directories work per http.
>>>> 
>>>> They do over https. But remember the syntax is, to take your url,
>>>> 
>>>> gitfiletree://user:pass@bitbucket.org/...?protocol=https
>>> 
>>> Does not work for me. It complains about unknown url scheme. But using
>>> the read-only version of gitfiletree would still mean I have to
>>> install gitfiletree, no? I have no glue hot the url with bitbucket://
>>> could work.
>>>> 
>>>> I wonder if I can write code that considers that if you have a
>>>> username and a password, then it should use https and not ssh.
>>> 
>>> I see no reason why. You can use ssh with username and password as well.
>>> 
>> Ok, I got it through the unknown url scheme but indeed the credentials
>> are stripped off.
>> 
>> Norbert
>> 
> 
> 





More information about the Pharo-users mailing list