cannot create branch from tags
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 2.3k
- Forks
- 293
- PR merge metrics
- No merged PRs in 30d
Description
How do I checkout a tag or create a branch from a tag.
Getting
Rugged::InvalidError: the requested type does not match the type in ODB
name = 'testbranch'
target = "dd6b748224752d89a83eae0d901cdc03d05dadfa" # points to a tag
branches.create(name, target)
or
repo.create_branch('sdfadsfsad', 'v0.1.1')
Rugged::InvalidError: the requested type does not match the type in ODB
from /home/appuser/.bundle/gems/rugged-0.26.0/lib/rugged/repository.rb:190:in `create'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the branches.create and repo.create_branch calls shown in the report, then inspect rugged-0.26.0/lib/rugged/repository.rb around line 190. Reproduce the error with the tag object and the v0.1.1 name, and compare the behavior with a commit target; done means creating a branch from a tag works or the limitation is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, ruby
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100