-
-
Notifications
You must be signed in to change notification settings - Fork 933
git-add doesn't seem to work on submodules #335
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
Comments
Thanks for the awesome issue ! I wished all of them would be made that thoroughly ! Even though I am working on figuring out the GitPython way, one should always be able to use git directly such as in I shall keep you posted. |
It's somewhat more complex to add new commits in submodules to the parent repository. The new test shows how to do that in a 'GitPythonic' way. Related to #335
There now is a new test which shows how to do it in a pythonic fashion. The stackoverflow question was answered showing the mentioned way, and a slightly simpler one. Both ways show that a change in GitPython is not required, even though adding changed submodules to the index seems a bit more difficult/involved than one might hope when using GitPython directly. |
Thanks! I'll look at it tomorrow :) |
That's a good idea ! Apparently the approach only works in py2.6 - travis fails in all other versions. It's ... odd. |
Ok, just a bug in the test - I think chances are travis will confirm this is fixed now. |
You can watch the development stream on youtube.
|
It seems that
index.add
doesn't work with submodules. Found exactly same issue/question on stackoverflow.Reproduction
First, some shell:
Now, the Python:
Expected vs result
I expected to see
master_repo
index acknowledge that thesubrepo
submodule pointer changed. However, nothing happens.System info
The text was updated successfully, but these errors were encountered: