ezbz / gitlabber

Gitlabber - clones or pulls entire groups tree from gitlab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use access token to clone repo

syphernl opened this issue · comments

commented

Is your feature request related to a problem? Please describe.
Currently using --method http results in getting a question for username / password.
Within GitLab it is however possible to use the access token (assuming it has read_repository permissions) to clone the repo.

Describe the solution you'd like
Append the token to the URL

Describe alternatives you've considered
None

Additional context
Add any other context or screenshots about the feature request here.

Duplicate of #18

GitPython doesn't support this natively you can add a wrapper as described here

In gitlab the username would be "oauth2" and the password would be the access token