Skip to content
This repository was archived by the owner on Dec 2, 2026. It is now read-only.
This repository was archived by the owner on Dec 2, 2026. It is now read-only.

Open a Repo from a subfolder #509

Closed
Closed

Description

@Globegitter

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.

Any chance to get this functionality?

Activity

  1. tbranyen commented on Mar 24, 2015

    @tbranyen
    Member

    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.

  2. Globegitter commented on Mar 24, 2015

    @Globegitter
    Author

    Will do and thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions