Title: git_annotated_commit_from_ref() fails if passed in reference is a tag · Issue #4909 · libgit2/libgit2 · GitHub
Open Graph Title: git_annotated_commit_from_ref() fails if passed in reference is a tag · Issue #4909 · libgit2/libgit2
X Title: git_annotated_commit_from_ref() fails if passed in reference is a tag · Issue #4909 · libgit2/libgit2
Description: I don't know if this is on purpose, but if a (non-lightweight) tag is passed as a reference to git_annotated_commit_from_ref(), it fails. That's because target oid of resolved reference passed to annotated_commit_init_from_id() belongs t...
Open Graph Description: I don't know if this is on purpose, but if a (non-lightweight) tag is passed as a reference to git_annotated_commit_from_ref(), it fails. That's because target oid of resolved reference passed to a...
X Description: I don't know if this is on purpose, but if a (non-lightweight) tag is passed as a reference to git_annotated_commit_from_ref(), it fails. That's because target oid of resolved reference pas...
Opengraph URL: https://github.com/libgit2/libgit2/issues/4909
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"git_annotated_commit_from_ref() fails if passed in reference is a tag","articleBody":"I don't know if this is on purpose, but if a (non-lightweight) tag is passed as a reference to git_annotated_commit_from_ref(), it fails. That's because target oid of resolved reference passed to annotated_commit_init_from_id() belongs to the tag, not to a commit. For this to work, the (non-lightweight) tag has to be peeled to a commit, and then pass that commit's oid to annotated_commit_init_from_id().\r\n\r\n### Version of libgit2: 0.27.7\r\n\r\n### Operating system(s) tested: macOS 10.14.2","author":{"url":"https://github.com/milke","@type":"Person","name":"milke"},"datePublished":"2018-12-13T21:46:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/4909/libgit2/issues/4909"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a404eadc-590a-72cd-c9b8-ae71fd23f7cc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB52:1C9D94:41808BE:55AB4C9:6A5D2B3B |
| html-safe-nonce | 9c79a1dad9e5c03374d3c952e220f7e58e3c00bd304514c39283524a07c3ded0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjUyOjFDOUQ5NDo0MTgwOEJFOjU1QUI0Qzk6NkE1RDJCM0IiLCJ2aXNpdG9yX2lkIjoiMzk2OTc3NzU1OTgxOTU5NDU1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 46bfcee32aedeebb3b73d938d5ac8e6cfe69c659a28b6eb198f6ff786e1ac529 |
| hovercard-subject-tag | issue:390873131 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/libgit2/libgit2/4909/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1584d2541e367b4e90463238a23070a571e8465ec5ba690bb652258b5c666dc0/libgit2/libgit2/issues/4909 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1584d2541e367b4e90463238a23070a571e8465ec5ba690bb652258b5c666dc0/libgit2/libgit2/issues/4909 |
| og:image:alt | I don't know if this is on purpose, but if a (non-lightweight) tag is passed as a reference to git_annotated_commit_from_ref(), it fails. That's because target oid of resolved reference passed to a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | milke |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/libgit2/libgit2 git https://github.com/libgit2/libgit2.git |
| octolytics-dimension-user_id | 394745 |
| octolytics-dimension-user_login | libgit2 |
| octolytics-dimension-repository_id | 901662 |
| octolytics-dimension-repository_nwo | libgit2/libgit2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 901662 |
| octolytics-dimension-repository_network_root_nwo | libgit2/libgit2 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width