From e11f12adffec6bf03ea1faae6c570beaceaffc86 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 7 Jun 2011 20:13:58 +0200 Subject: [PATCH] Fixed submodule test. Just a tiny thing --- git/test/test_submodule.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git/test/test_submodule.py b/git/test/test_submodule.py index adb4fb821..364a84e7c 100644 --- a/git/test/test_submodule.py +++ b/git/test/test_submodule.py @@ -247,6 +247,9 @@ def _do_base_tests(self, rwrepo): self.failUnlessRaises(InvalidGitRepositoryError, sm.remove, dry_run=True) sm.module().index.reset(working_tree=True) + # enforce the submodule to be checked out at the right spot as well. + csm.update() + # this would work assert sm.remove(dry_run=True) is sm assert sm.module_exists()