Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/bb/fetch2/git.py: added handling of password #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SvOlli
Copy link

@SvOlli SvOlli commented Sep 22, 2017

I had problems in yocto trying to download a password protected git repository hosted via http.

Tracking down the problem, I noticed that the git fetcher of bitbake only handles the password, but drops the password. This is the change that fixed the problem for me. I hope it will be of use for others as well.

Trying to checkout sourcecode which is username/password protected fails.
This is a fix that also hands down the password to the downloader.
@alkino
Copy link
Contributor

alkino commented Jun 12, 2018

This patch seems interesting but you should read README to see how contributing, Pull Request are never read and cannot be disable on github.

@leiflm
Copy link
Contributor

leiflm commented Sep 23, 2020

I just stumbled over this PR and wanted to let other users know, that bitbake can make use of the git-credentials.

Simplify put your credentials into a file (i.e. .git-credentials):

https://my_https_user:[email protected]

and configure git (and bitbake) to use it:

git config --global credential.helper "store --file $PWD/.git-credentials"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants