diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-07-27 17:51:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-27 17:51:57 +0800 |
commit | 254305c935893d7578b112acfa814a07d398ae28 (patch) | |
tree | 60c06d38a79e0113eb7777cc964c9a85fd6b1a0a /test/test_repo.py | |
parent | c5e6ae25b9169e5ef070d791fb9d620e2357e24e (diff) | |
parent | 717bfe9f7aa9c64e585e1202da03b1d72dededb8 (diff) | |
download | gitpython-254305c935893d7578b112acfa814a07d398ae28.tar.gz |
Merge pull request #1299 from Lakhtenkov-iv/feature/clone-options-support-spaces
Added support of spaces for clone multi_options
Diffstat (limited to 'test/test_repo.py')
-rw-r--r-- | test/test_repo.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_repo.py b/test/test_repo.py index 8aced94d..6d617609 100644 --- a/test/test_repo.py +++ b/test/test_repo.py @@ -218,11 +218,13 @@ class TestRepo(TestBase): cloned = Repo.clone_from(original_repo.git_dir, pathlib.Path(rw_dir) / "clone_pathlib_withConfig", multi_options=["--recurse-submodules=repo", "--config core.filemode=false", - "--config submodule.repo.update=checkout"]) + "--config submodule.repo.update=checkout", + "--config filter.lfs.clean='git-lfs clean -- %f'"]) self.assertEqual(cloned.config_reader().get_value('submodule', 'active'), 'repo') self.assertEqual(cloned.config_reader().get_value('core', 'filemode'), False) self.assertEqual(cloned.config_reader().get_value('submodule "repo"', 'update'), 'checkout') + self.assertEqual(cloned.config_reader().get_value('filter "lfs"', 'clean'), 'git-lfs clean -- %f') def test_clone_from_with_path_contains_unicode(self): with tempfile.TemporaryDirectory() as tmpdir: |