All of lore.kernel.org
 help / color / mirror / Atom feed
* Fetching code via git over ssh.
@ 2012-03-29 12:13 Samuel Stirtzel
  2012-03-29 12:18 ` Andreas Oberritter
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Stirtzel @ 2012-03-29 12:13 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

Hi,
as I have set up a git server on one of my PCs and secured it with ssh.
I tried to use the repository in a recipe, cloning via "git clone
ssh://user@server/~/repo.git" works.
But bitbake tries to fetch the repository via scp instead of git (also
if I add protocol=git).

Tried something like this in my recipe:
SRC_URI = "ssh://user@server/~/repo.git;protocol=git;branch=master"
(note: the git repository is in the home directory of the user, so the
tilde is not causing an error)


Anyone else tried to fetch a repository on a ssh secured git server via bitbake?

-- 
Regards
Samuel



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fetching code via git over ssh.
  2012-03-29 12:13 Fetching code via git over ssh Samuel Stirtzel
@ 2012-03-29 12:18 ` Andreas Oberritter
  2012-03-29 13:12   ` Samuel Stirtzel
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Oberritter @ 2012-03-29 12:18 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 29.03.2012 14:13, Samuel Stirtzel wrote:
> Hi,
> as I have set up a git server on one of my PCs and secured it with ssh.
> I tried to use the repository in a recipe, cloning via "git clone
> ssh://user@server/~/repo.git" works.
> But bitbake tries to fetch the repository via scp instead of git (also
> if I add protocol=git).
> 
> Tried something like this in my recipe:
> SRC_URI = "ssh://user@server/~/repo.git;protocol=git;branch=master"
> (note: the git repository is in the home directory of the user, so the
> tilde is not causing an error)
> 
> 
> Anyone else tried to fetch a repository on a ssh secured git server via bitbake?
> 

Use git://user@server/path;protocol=ssh



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fetching code via git over ssh.
  2012-03-29 12:18 ` Andreas Oberritter
@ 2012-03-29 13:12   ` Samuel Stirtzel
  0 siblings, 0 replies; 3+ messages in thread
From: Samuel Stirtzel @ 2012-03-29 13:12 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

2012/3/29 Andreas Oberritter <obi@opendreambox.org>:
> On 29.03.2012 14:13, Samuel Stirtzel wrote:
>> Hi,
>> as I have set up a git server on one of my PCs and secured it with ssh.
>> I tried to use the repository in a recipe, cloning via "git clone
>> ssh://user@server/~/repo.git" works.
>> But bitbake tries to fetch the repository via scp instead of git (also
>> if I add protocol=git).
>>
>> Tried something like this in my recipe:
>> SRC_URI = "ssh://user@server/~/repo.git;protocol=git;branch=master"
>> (note: the git repository is in the home directory of the user, so the
>> tilde is not causing an error)
>>
>>
>> Anyone else tried to fetch a repository on a ssh secured git server via bitbake?
>>
>
> Use git://user@server/path;protocol=ssh
>

Thanks it works.


-- 
Regards
Samuel



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-29 13:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-29 12:13 Fetching code via git over ssh Samuel Stirtzel
2012-03-29 12:18 ` Andreas Oberritter
2012-03-29 13:12   ` Samuel Stirtzel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.