Skip to content

Commit e11f12a

Browse files
committed
Fixed submodule test. Just a tiny thing
1 parent 5b3b652 commit e11f12a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git/test/test_submodule.py

+3
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ def _do_base_tests(self, rwrepo):
247247
self.failUnlessRaises(InvalidGitRepositoryError, sm.remove, dry_run=True)
248248
sm.module().index.reset(working_tree=True)
249249

250+
# enforce the submodule to be checked out at the right spot as well.
251+
csm.update()
252+
250253
# this would work
251254
assert sm.remove(dry_run=True) is sm
252255
assert sm.module_exists()

0 commit comments

Comments
 (0)