Title: getReference passes unexpected object into callback · Issue #98 · nodegit/nodegit · GitHub
Open Graph Title: getReference passes unexpected object into callback · Issue #98 · nodegit/nodegit
X Title: getReference passes unexpected object into callback · Issue #98 · nodegit/nodegit
Description: Hey. I just followed an example from example/general.js and tried to list all references of my repository. But the reference object, which is passed to my callback, is missing the methods .isOid() and .oid() Here's the relevant except: r...
Open Graph Description: Hey. I just followed an example from example/general.js and tried to list all references of my repository. But the reference object, which is passed to my callback, is missing the methods .isOid() ...
X Description: Hey. I just followed an example from example/general.js and tried to list all references of my repository. But the reference object, which is passed to my callback, is missing the methods .isOid() ...
Opengraph URL: https://github.com/nodegit/nodegit/issues/98
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"getReference passes unexpected object into callback","articleBody":"Hey.\n\nI just followed an example from `example/general.js` and tried to list all references of my repository. But the reference object, which is passed to my callback, is missing the methods `.isOid()` and `.oid()`\n\nHere's the relevant except:\n\n```\nrepo.getReference(referenceName, function(error, reference) {\n if (error) throw error;\n if (reference.isOid()) {\n console.log(\"Reference:\", referenceName, reference.oid());\n } else if (reference.isSymbolic()) {\n console.log(\"Reference:\", referenceName, reference.symbolicTarget());\n }\n});\n```\n\nI have tried this with the latest release from npm registry and also with a fresh master clone. Same issues on both versions.\n##### My configuration:\n\nNode.js `v0.10.0`\nnodegit `v0.1.0`\nMac OSX `10.8.5`\n","author":{"url":"https://github.com/micha149","@type":"Person","name":"micha149"},"datePublished":"2013-10-01T07:39:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/98/nodegit/issues/98"}
| 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:83da5e88-5b0d-84f0-ac41-f4f50f08b400 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AFE2:2F98EE:347F404:444910E:6A5CE6CA |
| html-safe-nonce | 409e62b316e0c550ac796f21b592acb888523be90437d44e77ea3e5494a1670c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkUyOjJGOThFRTozNDdGNDA0OjQ0NDkxMEU6NkE1Q0U2Q0EiLCJ2aXNpdG9yX2lkIjoiMzUzODczMTQ4MDg5NzA4NzE3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1319527621a19d0e2ed3fb3a3fd3dbab28372f4951fd8cf2aeaadd952520bc48 |
| hovercard-subject-tag | issue:20316220 |
| 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/nodegit/nodegit/98/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d667727be71862cd77d3c79f5c0e03e43d840590209a54704f209ddbebca535a/nodegit/nodegit/issues/98 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d667727be71862cd77d3c79f5c0e03e43d840590209a54704f209ddbebca535a/nodegit/nodegit/issues/98 |
| og:image:alt | Hey. I just followed an example from example/general.js and tried to list all references of my repository. But the reference object, which is passed to my callback, is missing the methods .isOid() ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | micha149 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1383170 |
| octolytics-dimension-repository_nwo | nodegit/nodegit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1383170 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit |
| 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