diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-17 15:53:55 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-17 15:53:55 +0100 |
commit | c7b16ade191bb753ebadb45efe6be7386f67351d (patch) | |
tree | 8a7f64b7bc8cc989573d921d12f8cf7aad256b7c /git/test/test_submodule.py | |
parent | 67680a0877f01177dc827beb49c83a9174cdb736 (diff) | |
download | gitpython-c7b16ade191bb753ebadb45efe6be7386f67351d.tar.gz |
Submodule.remove() now deals with .git files correctly.
A simple test verifies this at least.
Diffstat (limited to 'git/test/test_submodule.py')
-rw-r--r-- | git/test/test_submodule.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/git/test/test_submodule.py b/git/test/test_submodule.py index bb488502..76412123 100644 --- a/git/test/test_submodule.py +++ b/git/test/test_submodule.py @@ -665,8 +665,10 @@ class TestSubmodule(TestBase): assert sm.module_exists() # remove - sm.remove() - assert sm.exist() sm_module_path = sm.module().git_dir - assert sm.module_exists() - assert os.path.isdir(sm_module_path) + sm.remove() + assert not sm.exists() + assert not sm.module_exists() + assert not os.path.isdir(sm_module_path) + + |