Title: require('path').Repo.open(...) returns {} · Issue #241 · nodegit/nodegit · GitHub
Open Graph Title: require('path').Repo.open(...) returns {} · Issue #241 · nodegit/nodegit
X Title: require('path').Repo.open(...) returns {} · Issue #241 · nodegit/nodegit
Description: Here is sample code of what I'm doing: var path = require('path'); var GitService = function () { this.open = require("nodegit").Repo.open; }; GitService.prototype = { log: function (repo, count, callback) { this.open('/home/joshua/skydu...
Open Graph Description: Here is sample code of what I'm doing: var path = require('path'); var GitService = function () { this.open = require("nodegit").Repo.open; }; GitService.prototype = { log: function (repo, count, c...
X Description: Here is sample code of what I'm doing: var path = require('path'); var GitService = function () { this.open = require("nodegit").Repo.open; }; GitService.prototype = { log: fu...
Opengraph URL: https://github.com/nodegit/nodegit/issues/241
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"require('path').Repo.open(...) returns {}","articleBody":"Here is sample code of what I'm doing:\n\n```\nvar path = require('path');\n\nvar GitService = function () {\n this.open = require(\"nodegit\").Repo.open;\n};\n\nGitService.prototype = {\n log: function (repo, count, callback) {\n this.open('/home/joshua/skyduel/.git', function(error, repo) {\n if (error) throw error;\n console.log('repo opened', repo);\n });\n }\n};\n\nmodule.exports = GitService;\n```\n\nConsole output when I run my wrapper application:\n\n```\nrepo opened {}\n```\n\nAny ideas? I know for _sure_ that the repo being requested exists, is freshly populated, and I can do `git status` on it and receive proper information.\n\nHere is console output showing the git repo is properly initialized:\n\n```\njoshua@joshua-VirtualBox:~/skyduel$ pwd\n/home/joshua/skyduel\njoshua@joshua-VirtualBox:~/skyduel$ git status\nOn branch master\nYour branch is up-to-date with 'origin/master'.\n\nnothing to commit, working directory clean\njoshua@joshua-VirtualBox:~/skyduel$ npm list -g | grep nodegit\n├─┬ nodegit@0.1.4\njoshua@joshua-VirtualBox:~/skyduel$ \n```\n\n_nodegit@0.1.4_\n","author":{"url":"https://github.com/joshjung","@type":"Person","name":"joshjung"},"datePublished":"2014-10-14T17:22:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/241/nodegit/issues/241"}
| 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:905349e7-61a5-438f-6da8-115921760c48 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90AE:20CC71:48C5036:63F39DD:6A5E21E4 |
| html-safe-nonce | 909791ee28dd56d3ce554672e2dbaa17e4cf7044289e8e07b32f330ae44fd97f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEFFOjIwQ0M3MTo0OEM1MDM2OjYzRjM5REQ6NkE1RTIxRTQiLCJ2aXNpdG9yX2lkIjoiNDIwMTA0MjQ3NzkzNTU3OTg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 65a059b292ace8a6b7e51219f8a65a4380b2a646bb1f4a922bce1db6d73d855d |
| hovercard-subject-tag | issue:45776602 |
| 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/241/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7a8eb2d1447da3446298afc7947d6590b4ad1e9a0c8a8e1342bead101d7668cd/nodegit/nodegit/issues/241 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a8eb2d1447da3446298afc7947d6590b4ad1e9a0c8a8e1342bead101d7668cd/nodegit/nodegit/issues/241 |
| og:image:alt | Here is sample code of what I'm doing: var path = require('path'); var GitService = function () { this.open = require("nodegit").Repo.open; }; GitService.prototype = { log: function (repo, count, c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | joshjung |
| hostname | github.com |
| expected-hostname | github.com |
| None | e5010f4d2748a3cbef86e1580413ff14701bd99f255268dfb4a2857c77e2cc7c |
| 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 | 7d23604c4a8ce0274b4c71bb2adbe6e1c9d5904f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width