Title: Repository.getReferenceNames returns arrayReference, not arrayString · Issue #1707 · nodegit/nodegit · GitHub
Open Graph Title: Repository.getReferenceNames returns arrayReference, not arrayString · Issue #1707 · nodegit/nodegit
X Title: Repository.getReferenceNames returns arrayReference, not arrayString · Issue #1707 · nodegit/nodegit
Description: System information node version: v12.4.0 npm or yarn version: 6.4.1 OS/version/architecture: macOS Mojave Applicable nodegit version: v0.25.0-alpha.16 additional info: testing in electron 6 beta node -v yarn -v node -e "console.log(proce...
Open Graph Description: System information node version: v12.4.0 npm or yarn version: 6.4.1 OS/version/architecture: macOS Mojave Applicable nodegit version: v0.25.0-alpha.16 additional info: testing in electron 6 beta no...
X Description: System information node version: v12.4.0 npm or yarn version: 6.4.1 OS/version/architecture: macOS Mojave Applicable nodegit version: v0.25.0-alpha.16 additional info: testing in electron 6 beta no...
Opengraph URL: https://github.com/nodegit/nodegit/issues/1707
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Repository.getReferenceNames returns arrayReference, not arrayString","articleBody":"## System information\r\n - node version: v12.4.0\r\n - npm or yarn version: 6.4.1\r\n - OS/version/architecture: macOS Mojave \r\n - Applicable nodegit version: v0.25.0-alpha.16\r\n\r\nadditional info: testing in electron 6 beta\r\n\r\n```\r\nnode -v\r\nyarn -v\r\nnode -e \"console.log(process.platform)\"\r\nnode -e \"console.log(require('os').release())\"\r\nnode -e \"console.log(console.log(process.arch))\"\r\n\r\nv12.4.0\r\n1.16.0\r\ndarwin\r\n18.6.0\r\nx64\r\n```\r\n\r\n[`Repository#getReferenceNames`](https://www.nodegit.org/api/repository/#getReferenceNames) is documented as returning an array of strings, however in v0.25.0-alpha.16, I am seeing it return an array of `Reference` objects.\r\n\r\nTo reproduce the issue:\r\n\r\n```javascript\r\nvar repo = await nodegit.Repository.open(pathToRepo)\r\nvar refNames = await repo.getReferenceNames(nodegit.Reference.TYPE.LISTALL)\r\nconsole.log(refNames[0]) //=\u003e Reference {}\r\nconsole.log(refNames[0].name()) //=\u003e string\r\n```\r\n\r\n","author":{"url":"https://github.com/rickharris","@type":"Person","name":"rickharris"},"datePublished":"2019-07-24T18:26:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1707/nodegit/issues/1707"}
| 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:738fe244-3a33-b60d-6d59-77f5a8a6cf08 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDEA:2C38E5:1AB6B0C:258D5AE:6970DE9C |
| html-safe-nonce | b462eee370f85084d052dacb1a34fbd9ff7b94622c4d7bdc2ff7e558514e2114 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREVBOjJDMzhFNToxQUI2QjBDOjI1OEQ1QUU6Njk3MERFOUMiLCJ2aXNpdG9yX2lkIjoiNjY3OTUxMzc0MDE0MDkyODY2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9a5375a13eb4d65292cfd4a423529f035651c1a81c994e20bb7921b66385904a |
| hovercard-subject-tag | issue:472430204 |
| 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/1707/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eacce1f934d4bdab51a99c2606cc0ec4c04ec8e1fa959ba93e9da94acc94c026/nodegit/nodegit/issues/1707 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eacce1f934d4bdab51a99c2606cc0ec4c04ec8e1fa959ba93e9da94acc94c026/nodegit/nodegit/issues/1707 |
| og:image:alt | System information node version: v12.4.0 npm or yarn version: 6.4.1 OS/version/architecture: macOS Mojave Applicable nodegit version: v0.25.0-alpha.16 additional info: testing in electron 6 beta no... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rickharris |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9203e7efc62065329c3b7015a1e6d16fc14bce440abec7b0d3cbe9e4fb1e2e4 |
| 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 | eb3c92b74ae48a78cffd8700b8eb5f60bad61528 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width