Title: Open a Repo from a subfolder · Issue #509 · nodegit/nodegit · GitHub
Open Graph Title: Open a Repo from a subfolder · Issue #509 · nodegit/nodegit
X Title: Open a Repo from a subfolder · Issue #509 · nodegit/nodegit
Description: Reading from the docs and playing around a bit with Git.Repository.open(), it seems it can only open a git repository if it is the root folder. The way my app works, the user can pass in any file from within any of their repositories and...
Open Graph Description: Reading from the docs and playing around a bit with Git.Repository.open(), it seems it can only open a git repository if it is the root folder. The way my app works, the user can pass in any file f...
X Description: Reading from the docs and playing around a bit with Git.Repository.open(), it seems it can only open a git repository if it is the root folder. The way my app works, the user can pass in any file f...
Opengraph URL: https://github.com/nodegit/nodegit/issues/509
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Open a Repo from a subfolder","articleBody":"Reading from the docs and playing around a bit with `Git.Repository.open()`, it seems it can only open a git repository if it is the root folder. The way my app works, the user can pass in any file from within any of their repositories and then I am handling that. so it would be really convenient if I could just pass the path of the file to `Git.Repository.open()` and it would automatically detect the git repository, no matter how many levels down.\n\nAny chance to get this functionality?\n","author":{"url":"https://github.com/Globegitter","@type":"Person","name":"Globegitter"},"datePublished":"2015-03-24T11:24:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/509/nodegit/issues/509"}
| 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:1a9e22ec-a925-48b2-d93f-9f26f1f600e2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8542:3F705B:2B6CE0A:3A0DCCA:6A5D9FBA |
| html-safe-nonce | aade3f84753427c5dd43b7dd90db349aee2b84867c0d67e6abc836e5841b7e8e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTQyOjNGNzA1QjoyQjZDRTBBOjNBMERDQ0E6NkE1RDlGQkEiLCJ2aXNpdG9yX2lkIjoiODM4MDgzNjUxMTg2NTQ3OTA5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ad4b790cf5c85d5d698c44bce12df36e48b33a24781a4ff63096c99040fd1567 |
| hovercard-subject-tag | issue:63971897 |
| 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/509/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee7a3dfb686c39ad3cf40a92c057477ec375019b31f40f47c90ab3de5c226400/nodegit/nodegit/issues/509 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee7a3dfb686c39ad3cf40a92c057477ec375019b31f40f47c90ab3de5c226400/nodegit/nodegit/issues/509 |
| og:image:alt | Reading from the docs and playing around a bit with Git.Repository.open(), it seems it can only open a git repository if it is the root folder. The way my app works, the user can pass in any file f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Globegitter |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width