diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-11-17 15:24:48 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-11-17 15:24:48 +0100 |
commit | a1e6234c27abf041e4c8cd1a799950e7cd9104f6 (patch) | |
tree | 3e39fa29ea1478f9a31f378a25bd9c58bb71ed91 /test/git/test_repo.py | |
parent | b03933057df80ea9f860cc616eb7733f140f866e (diff) | |
download | gitpython-a1e6234c27abf041e4c8cd1a799950e7cd9104f6.tar.gz |
Inital implementation of Submodule.move including a very simple and to-be-improved test
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r-- | test/git/test_repo.py | 9 |
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 + + |