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.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py
index 3a59f05e..2acccced 100644
--- a/test/git/test_repo.py
+++ b/test/git/test_repo.py
@@ -562,3 +562,12 @@ class TestRepo(TestBase):
assert isinstance(self.rorepo.submodule("lib/git/ext/gitdb"), Submodule)
self.failUnlessRaises(ValueError, self.rorepo.submodule, "doesn't exist")
+
+ @with_rw_repo('HEAD', bare=False)
+ def test_submodule_update(self, rwrepo):
+ # fails in bare mode
+ rwrepo._bare = True
+ self.failUnlessRaises(InvalidGitRepositoryError, rwrepo.submodule_update)
+ rwrepo._bare = False
+
+