All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Halstead <michael@yoctoproject.org>
To: yocto@yoctoproject.org
Subject: Re: Git fetch with user/pass in a recipe
Date: Wed, 16 Apr 2014 14:48:27 -0700	[thread overview]
Message-ID: <534EFAAB.2010706@yoctoproject.org> (raw)
In-Reply-To: <CALTF=oJyYWTJKauMk2VmdAoL+1v6vnVq892Og=6h3C-2c1XBcg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]

On 04/16/2014 02:15 PM, Ronaldo Nunez wrote:
> Hi all!
>
> I'm trying to create a custom recipe to a proprietary software from my
> company. The code should be fetched from a git server, with username
> and password authentication through a http connection (port 8080).
>
> From the terminal I use the following command line to clone the project:
>
> $ git clone http://username:pass@server:8080/project.git
>
> well in the bitbake recipe, I tried the following in SRC_URI variable,
> with no success:
>
> SRC_URI = "git://username:pass@server:8080/project.git;protocol=http"
>
> I also tried:
>
> SRC_URI = "git://server:8080/project.git;protocol=http;user=username"

It isn't mentioned at
http://www.yoctoproject.org/docs/1.6/bitbake-user-manual/bitbake-user-manual.html#git-fetcher
but looking at
http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/bitbake/lib/bb/fetch2/git.py?h=dora
it seems that including the password as part of the user parameter
should work.

For example,
SRC_URI =
"git://server:8080/project.git;protocol=http;user=username:password"


Michael Halstead
Yocto Project / Sys Admin


>
> Again, with no success.
>
> Well, any help is welcome. Thanks in advance.
>
> -- 
> Ronaldo Nunez
>
>


[-- Attachment #2: Type: text/html, Size: 3234 bytes --]

  reply	other threads:[~2014-04-16 21:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-16 21:15 Git fetch with user/pass in a recipe Ronaldo Nunez
2014-04-16 21:48 ` Michael Halstead [this message]
2014-04-17 17:23   ` Ronaldo Nunez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=534EFAAB.2010706@yoctoproject.org \
    --to=michael@yoctoproject.org \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.