Title: repo.branch fails on empty repo · Issue #22 · nodegit/nodegit · GitHub
Open Graph Title: repo.branch fails on empty repo · Issue #22 · nodegit/nodegit
X Title: repo.branch fails on empty repo · Issue #22 · nodegit/nodegit
Description: Calling repo.branch on an empty repo created with repo.init the program aborts with following message: node: ../../src/refs.c:1067: git_reference_oid: Assertion `ref' failed. Aborted I tracked the bug down to repo.js line 37 ref.oid().oi...
Open Graph Description: Calling repo.branch on an empty repo created with repo.init the program aborts with following message: node: ../../src/refs.c:1067: git_reference_oid: Assertion `ref' failed. Aborted I tracked the ...
X Description: Calling repo.branch on an empty repo created with repo.init the program aborts with following message: node: ../../src/refs.c:1067: git_reference_oid: Assertion `ref' failed. Aborted I tracked ...
Opengraph URL: https://github.com/nodegit/nodegit/issues/22
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"repo.branch fails on empty repo","articleBody":"Calling `repo.branch` on an empty repo created with `repo.init` the program aborts with following message:\n\n```\nnode: ../../src/refs.c:1067: git_reference_oid: Assertion `ref' failed.\nAborted\n```\n\nI tracked the bug down to repo.js line 37 `ref.oid().oid`.\n\nIf the repo \"contains\" at least one commit, the error doesnt get thrown.\n","author":{"url":"https://github.com/payload","@type":"Person","name":"payload"},"datePublished":"2011-04-22T23:02:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/22/nodegit/issues/22"}
| 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:a010c3f0-73ad-6967-d3c1-7894e251a5c9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C60C:116E4B:3282098:41EEE26:6A5CE6D3 |
| html-safe-nonce | c97ede35726a6d32ad5bfb9414ee53dd2742b4512ebc2026dbb2fa69b2593838 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjBDOjExNkU0QjozMjgyMDk4OjQxRUVFMjY6NkE1Q0U2RDMiLCJ2aXNpdG9yX2lkIjoiMjA1OTYwNTU1MjMwMTY2Mzk1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b426bdffc3c0bcf1264e48aafcfe0eda8e5700afe57ba6f21a6e20953dc9f8c0 |
| hovercard-subject-tag | issue:804076 |
| 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/22/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f17b877f7262099f55764431512dc0638324befdc18ae8dfb314aa0b8d9142e3/nodegit/nodegit/issues/22 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f17b877f7262099f55764431512dc0638324befdc18ae8dfb314aa0b8d9142e3/nodegit/nodegit/issues/22 |
| og:image:alt | Calling repo.branch on an empty repo created with repo.init the program aborts with following message: node: ../../src/refs.c:1067: git_reference_oid: Assertion `ref' failed. Aborted I tracked the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | payload |
| 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