-
Notifications
You must be signed in to change notification settings - Fork 87
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 updating git submodules #59
Comments
I agree this would be useful as well! I'm not sure how much technical complexity it would add (I'm trying to think of ways that this could error in unexpected ways). If nothing glaring comes up as a possible downside, I'd be +1. Thanks for the idea! |
In repo2docker we use This is what a github blog post recommends to use. I don't use submodules at all so not sure what the state of the art is though. |
The |
Would you like to tackle this as a PR? Would be super welcome. I think we can make it the default, like in repo2docker, as it seems to be harmless for repos that don't have submodules. |
Yes, I can take on this PR. Not sure when I can do it though. |
Hey @HaukurPall. Have you had any time since to work on this? :) |
Thinking about this some more, what happens if the user has edited files inside the submodule? We would basically need to apply our merging logic recursively as well, rather than just run the submodule commands. |
Hi @yuvipanda, |
Thanks for responding, @HaukurPall. Submodules are generally pretty tricky. Every time I thought I had understood them I have been wrong... The automatic, 'no merge conflicts' invariant is a core part of nbgitpuller. Unless there are major reasons to not, I'd say we must support that before we can merge submodule support. |
I am also interested in this feature.
I am not sure which one we should use. @yuvipanda what do you think? Which one is closest to nbgitpullers strategy? |
I think it would be a useful feature support for git submodules in nbgitpuller.
The support I had in mind was simply calling
git submodule init
and thengit submodule update
when updating a repo.When a repo is updated which uses git submodules, these functions will most likely need to be called. Expecting the not-tech-savvy user to call these functions will cause confusion.
The text was updated successfully, but these errors were encountered: