nodegit / nodegit/nodegit

getTagByName will fail for tag without tag message

Open
#1,311 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.8k
Forks
704
PR merge metrics
No merged PRs in 30d

Description

When calling getTagByName on a tag without tag message, it will throw an error:
Error: the requested type does not match the type in the ODB errno: -3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the getTagByName entry point and reproduce the failure with a tag that has no tag message. Trace the reported ODB type-mismatch error, then verify that calling getTagByName for such a tag completes without throwing and preserves existing behavior for tagged messages.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, javascript, node.js
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.