From 7dd618655c96ff32b5c30e41a5406c512bcbb65f Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 19 Nov 2010 10:27:30 +0100 Subject: test_submodule: fixed failures that arose due to changes of the original submodule names. Also, a major bug was fixed that cased submodules to always being updated recursively when using the RootModule.update method submodule: previously, it would update the repository configuration during add(), but in fact it must be done during update() when the module is cloned, which is how the git-submodule implementation works --- lib/git/objects/submodule/root.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/git/objects/submodule/root.py') diff --git a/lib/git/objects/submodule/root.py b/lib/git/objects/submodule/root.py index 82b8b271..06649136 100644 --- a/lib/git/objects/submodule/root.py +++ b/lib/git/objects/submodule/root.py @@ -244,7 +244,7 @@ class RootModule(Submodule): ###################################### for sm in sms: # update the submodule using the default method - sm.update(recursive=True, init=init, to_latest_revision=to_latest_revision) + sm.update(recursive=False, init=init, to_latest_revision=to_latest_revision) # update recursively depth first - question is which inconsitent # state will be better in case it fails somewhere. Defective branch -- cgit v1.2.1