libgit2 / pygit2

Python bindings for libgit2
https://www.pygit2.org/
Other
1.58k stars 382 forks source link

Allow checkout_branch to point to a tag in clone_repository method #1144

Open antazoey opened 2 years ago

antazoey commented 2 years ago

When I try to provide a tag to the checkout_branch flag in pygit2.clone_repository(), it fails and is unable to find the reference. It would be nice to be able to checkout a tag right away (like a branch) on clone to clone a specifc release of a package

amyasnikov commented 1 year ago

Bump to this issue, I also faced the inability to clone repository using a tag

postlund commented 2 months ago

Same here. Supporting everything a regular git checkout does would be great, i.e. SHA, branch or tag.