Skip to content

Commit

Permalink
Fixed submodule test. Just a tiny thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jun 7, 2011
1 parent 5b3b652 commit e11f12a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions git/test/test_submodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e11f12a

Please sign in to comment.