You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 2, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 2, 2026. It is now read-only.
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.
Activity
tbranyen commentedon Mar 24, 2015
Hi @Globegitter we reserve the issue tracker for bugs, you can get general support for this project in our Gitter channel
To answer your question though, you want to use: http://www.nodegit.org/api/repository/#openExt and enable the search option.
Globegitter commentedon Mar 24, 2015
Will do and thank you!