Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Submodule update remote #1536

Answered by Byron
sarahamsaw asked this question in Q&A
Discussion options

From reading the documentation, I assumed that
git submodule update --remote
could be recreated in GitPython by the following
repo.submodule_update(to_latest_revision=True, recursive=False).

If I print out the progress, it looks like the latter one does a fetch, but doesn't update the submodule. Is there a way to do this in GitPython besides just calling repo.git.submodule('update', '--remote')?

Thanks!

You must be logged in to vote

I actually don't know (anymore) and would recommend to check the test suite via test_submodule.py or the likes - maybe it has invocations that show how to do certain things.

If in doubt, it can be assumed that it's not working, generally I wouldn't recommend using this submodule implementation as it's non-standard, tries to be smart and helpful, but due to lack of maintenance it might do the opposite by now.

Replies: 1 comment

Comment options

I actually don't know (anymore) and would recommend to check the test suite via test_submodule.py or the likes - maybe it has invocations that show how to do certain things.

If in doubt, it can be assumed that it's not working, generally I wouldn't recommend using this submodule implementation as it's non-standard, tries to be smart and helpful, but due to lack of maintenance it might do the opposite by now.

You must be logged in to vote
0 replies
Answer selected by sarahamsaw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /