Re: Only index.html is cloned in private repo clone recipe #yocto


On Wed, 7 Oct 2020 at 09:29, Bel Hadj Salem Talel <bhstalel@...> wrote:

Hello All,

I have a private git repo which is in a local gitlab server.
Here is the local repo domain:
I already saved the git credentials (username and password) , and I created this recipe:

SRCBRANCH = "master"
SRCPROTO = "https"
# Define the source for this recipe
SRC_URI += "${SRCURL};protocol=${SRCPROTO};branch=${SRCBRANCH}"
SRC_URI[md5sum] = "1becf51a6312d09f0c1c22120efd499c"
SRC_URI[sha256sum] = "142e3af77b6851b614d07012abce145ce2526b8d0d95e7a94cff62f0e6432d26"

When I do do_fetch and do_unpack I only see the index.html file of the repo is downloaded.
What is the problem ?
How can I solve this?
SRC_URI should start with "git://" to do a git clone. The "protocol"
field can then be set to http, https or ssh if needed, I see you've
already got that set to https after expansion so you should just need
to change your SRCURL value.


Paul Barker
Konsulko Group

Join to automatically receive all group messages.