summaryrefslogtreecommitdiff
path: root/test/git/test_repo.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r--test/git/test_repo.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py
index 2acccced..fb6e1450 100644
--- a/test/git/test_repo.py
+++ b/test/git/test_repo.py
@@ -570,4 +570,9 @@ class TestRepo(TestBase):
self.failUnlessRaises(InvalidGitRepositoryError, rwrepo.submodule_update)
rwrepo._bare = False
+ # test create submodule
+ sm = rwrepo.submodules[0]
+ sm = rwrepo.create_submodule("my_new_sub", "some_path", join_path_native(self.rorepo.working_tree_dir, sm.path))
+ assert isinstance(sm, Submodule)
+