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

Branch option in the gitprovider #456

Merged
merged 2 commits into from
Jul 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions doc/asab/library.rst
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,30 @@ Connection to git repositories requires `pygit2 <https://www.pygit2.org/>`_ libr

Configuration:

Please follow this format in the configuration:

.. code:: ini

[library]
providers: git+http(s)://<username>:<deploy-token>@<path>#<branch


Using a public repository from github, the configuration may look like this:

.. code:: ini

[library]
providers: git+https://github.com/john/awesome_project.git


Use hash `#<branch-name>` to clone a repository from a selected branch:

.. code:: ini

[library]
providers: git+https://github.com/john/awesome_project.git#name-of-the-branch


Deploy tokens in GitLab
~~~~~~~~~~~~~~~~~~~~~~~
GitLab uses deploy tokens to enable authentication of deployment tasks, independent of a user account.
Expand Down