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 --- test/git/test_repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/git/test_repo.py') diff --git a/test/git/test_repo.py b/test/git/test_repo.py index a6047bf5..62b4c476 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -560,7 +560,7 @@ class TestRepo(TestBase): assert len(self.rorepo.submodules) == 1 # non-recursive assert len(list(self.rorepo.iter_submodules())) == 2 - assert isinstance(self.rorepo.submodule("lib/git/ext/gitdb"), Submodule) + assert isinstance(self.rorepo.submodule("gitdb"), Submodule) self.failUnlessRaises(ValueError, self.rorepo.submodule, "doesn't exist") @with_rw_repo('HEAD', bare=False) -- cgit v1.2.1