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
Unable to checkout by tag commit id. #959
Comments
I've submitted a PR related to this issue. |
Documentation for
Is the problem that you are passing a tag hash rather than the commit hash? Would the correct procedure be to get the commit from the tag first and then pass that to You could call: |
aymanbagabas
added a commit
to aymanbagabas/go-git
that referenced
this issue
Dec 12, 2023
Allow checking out a worktree using a tag hash id. Fixes: go-git#959 Supersedes: go-git#964
aymanbagabas
added a commit
to aymanbagabas/go-git
that referenced
this issue
Dec 12, 2023
Allow checking out a worktree using a tag hash id. Fixes: go-git#959 Supersedes: go-git#964
aymanbagabas
added a commit
to aymanbagabas/go-git
that referenced
this issue
Dec 12, 2023
Allow checking out a worktree using a tag hash id. Fixes: go-git#959 Supersedes: go-git#964
aymanbagabas
added a commit
to aymanbagabas/go-git
that referenced
this issue
Dec 12, 2023
Allow checking out a worktree using a tag hash id. Fixes: go-git#959 Supersedes: go-git#964
pjbgf
added a commit
that referenced
this issue
Dec 14, 2023
git: worktree checkout tag hash id (#959)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So I'm trying to checkout by the tag commit id. Basically I get the tag, its hash then do a checkout. Like this.
I've verified the working directory has the commit, even checked objects folder by unpacking the repo I'm working with. I'm also able to checkout using the command line.
I tracked down the issue to this here. Here is the order
go-git/worktree.go
Line 307 in 5d08d3b
https://github.com/go-git/go-git/blob/master/repository.go#L1424
I'm wondering if this is a bug or if I'm going about the wrong way to checkout by tag.
The text was updated successfully, but these errors were encountered: