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:1711e30c-bfaf-3171-7fc7-82cc628f5560 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3DE:2F6413:79CF3B5:A2EDFBB:6A5E1ACD |
| html-safe-nonce | e134d3fa577768dc03c4a022bbe8be998869317b9333b43750544b3285259548 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0RFOjJGNjQxMzo3OUNGM0I1OkEyRURGQkI6NkE1RTFBQ0QiLCJ2aXNpdG9yX2lkIjoiMzQ3NzE2NzQ3OTgwNTg0NDE3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3ee937c60d69b841133a3d48ff964924cedc7b5ca563b8908126a3f99c01a11b |
| 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 | 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