Title: repo.workdir() crashes (SIGSEGV) on a bare repo · Issue #128 · nodegit/nodegit · GitHub
Open Graph Title: repo.workdir() crashes (SIGSEGV) on a bare repo · Issue #128 · nodegit/nodegit
X Title: repo.workdir() crashes (SIGSEGV) on a bare repo · Issue #128 · nodegit/nodegit
Description: It should probably return null instead. $ node gitrepo/badtest_git.js Created repo /tmp/dummyrepo Segmentation fault: 11 var git = require('nodegit'); git.Repo.init('/tmp/dummyrepo', true, function(err, repo) { if (err) throw err; consol...
Open Graph Description: It should probably return null instead. $ node gitrepo/badtest_git.js Created repo /tmp/dummyrepo Segmentation fault: 11 var git = require('nodegit'); git.Repo.init('/tmp/dummyrepo', true, function...
X Description: It should probably return null instead. $ node gitrepo/badtest_git.js Created repo /tmp/dummyrepo Segmentation fault: 11 var git = require('nodegit'); git.Repo.init('/tmp/dummyrepo'...
Opengraph URL: https://github.com/nodegit/nodegit/issues/128
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"repo.workdir() crashes (SIGSEGV) on a bare repo","articleBody":"It should probably return null instead.\n\n$ node gitrepo/badtest_git.js \nCreated repo /tmp/dummyrepo\nSegmentation fault: 11\n\n```\nvar git = require('nodegit');\n\ngit.Repo.init('/tmp/dummyrepo', true, function(err, repo) {\n if (err) throw err;\n console.log('Created repo');\n var workdir = repo.workdir();\n console.log('Got workdir', workdir);\n});\n```\n","author":{"url":"https://github.com/tlbtlbtlb","@type":"Person","name":"tlbtlbtlb"},"datePublished":"2014-01-13T23:04:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/128/nodegit/issues/128"}
| 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:48bd35a9-0940-3856-b949-3196580b5bdd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2AE:22AFD6:7961D35:A2C0EA4:6A5E1AE8 |
| html-safe-nonce | 9d17af3b26876c8962ebf267499ca53319004a38ba5a1f995246687e04f8290e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkFFOjIyQUZENjo3OTYxRDM1OkEyQzBFQTQ6NkE1RTFBRTgiLCJ2aXNpdG9yX2lkIjoiNTMwMTI0Njc2MDUwMTI1NDg4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e0ea9aea6ceb8802dbd54d84b4065f77d5f56ccd7e8db7b71921a35073565fa1 |
| hovercard-subject-tag | issue:25536187 |
| 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/128/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e3ae73d8574e91f46469ecf61e6860b90d5bc69c1084dd0fb6a1473a0b7ec53f/nodegit/nodegit/issues/128 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e3ae73d8574e91f46469ecf61e6860b90d5bc69c1084dd0fb6a1473a0b7ec53f/nodegit/nodegit/issues/128 |
| og:image:alt | It should probably return null instead. $ node gitrepo/badtest_git.js Created repo /tmp/dummyrepo Segmentation fault: 11 var git = require('nodegit'); git.Repo.init('/tmp/dummyrepo', true, function... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tlbtlbtlb |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7a60e060dad2c24f72179d36247204b454da37845d1728020cd42046a433f87f |
| 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 | 0ae7f3ea7b1bb2f1f4623bb093bbf54cee05d830 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width