diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-11-15 22:12:05 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-11-15 22:12:05 +0100 |
commit | ceee7d7e0d98db12067744ac3cd0ab3a49602457 (patch) | |
tree | 61325f8bcb9b5849413abcdb8adba4c9cb410a44 /test/git/test_submodule.py | |
parent | 624556eae1c292a1dc283d9dca1557e28abe8ee3 (diff) | |
download | gitpython-ceee7d7e0d98db12067744ac3cd0ab3a49602457.tar.gz |
Added partial implementation of update, but realized that using refs in general may be contradicting if a tag is given there, as well as a commit sha of the submodule. Hence it should really be only a branch
Diffstat (limited to 'test/git/test_submodule.py')
-rw-r--r-- | test/git/test_submodule.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/git/test_submodule.py b/test/git/test_submodule.py index ac179c22..f015ad7f 100644 --- a/test/git/test_submodule.py +++ b/test/git/test_submodule.py @@ -51,7 +51,7 @@ class TestSubmodule(TestBase): # make the old into a new prev_parent_commit = smold.parent_commit - smold.set_parent_commit(self.k_subm_current) + assert smold.set_parent_commit(self.k_subm_current) is smold assert smold.parent_commit != prev_parent_commit assert smold.binsha == sm.binsha smold.set_parent_commit(prev_parent_commit) @@ -70,7 +70,9 @@ class TestSubmodule(TestBase): # its not checked out in our case self.failUnlessRaises(InvalidGitRepositoryError, sm.module) - # lets do it - its a recursive one too + # lets update it - its a recursive one too + # update fails if the path already exists non-empty + # self.failUnlessRaises( # delete the whole directory and re-initialize # END handle bare mode |