rugged icon indicating copy to clipboard operation
rugged copied to clipboard

cannot create branch from tags

Open logicminds opened this issue 8 years ago • 0 comments

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'

logicminds avatar Dec 08 '17 01:12 logicminds