Skip to content

repo.getReferenceCommit() does not work with annotated tags #1370

@rhuss

Description

@rhuss

The method getReferenceCommit() on a Repository works with a tag given in the form refs/tags/v0.1.5 only when the tag is a lightweight tag. If it is an annotated tag, calling this method results in an error:

Error: the requested type does not match the type in the ODB

See also the discussion at https://gitter.im/nodegit/nodegit?at=59b5026e66c1c7c477342023

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions