Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for submodules #73

Closed
ki82 opened this issue Aug 11, 2015 · 3 comments
Closed

Support for submodules #73

ki82 opened this issue Aug 11, 2015 · 3 comments

Comments

@ki82
Copy link

ki82 commented Aug 11, 2015

Grgit fails to open submodules with "repository not found:", since there is no .git directory in a submodule.

In a submodule there is an .git file that in my example looks like this:
gitdir: ../.git/modules/subModuleFolder
If I use Grgit.open(' ../.git/modules/subModuleFolder') it seems to work fine.

It would be nice if grgit could internally read .git file in a submodule and then parse which git directory to use.

@ki82
Copy link
Author

ki82 commented Aug 11, 2015

200$ is up for grabs for solving this at: https://freedomsponsors.org/issue/730/support-for-submodules

@ajoberstar
Copy link
Owner

Have you tried any of the new options introduced in 1.3.0? These fixed #64 and #66, which may be similar to the issue you're having.

@ki82
Copy link
Author

ki82 commented Aug 13, 2015

Thanks, it worked by using the currentDir option

@ki82 ki82 closed this as completed Aug 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants