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:e677a5b7-8775-d616-e543-21f556bf46b9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE12:8CE4F:294C01:389F79:6A5FA9B5 |
| html-safe-nonce | e5915cbfb7e00035e5e5452e870d08840276a688d221de61f2e3b3e231583e50 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTEyOjhDRTRGOjI5NEMwMTozODlGNzk6NkE1RkE5QjUiLCJ2aXNpdG9yX2lkIjoiMTA4ODY5MDQ2Mzc1MzM0OTU1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8d09c7be8acadda289482acb80a640b296e9b5c2702e7bbc3cb7dbd8dd6995e4 |
| 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 | 9b835c054d57dfb6ce72ba8f0eb8f16f0370860631609eb10df818738c61c68d |
| 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 | 4df9bc0bde4bfd7cd95e75afdd7f103984ece3a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width