summaryrefslogtreecommitdiff
path: root/test/test_repo.py
diff options
context:
space:
mode:
authorIgor Lakhtenkov <lakhtenkov@gmail.com>2021-07-27 11:41:16 +0300
committerIgor Lakhtenkov <lakhtenkov@gmail.com>2021-07-27 11:49:40 +0300
commit717bfe9f7aa9c64e585e1202da03b1d72dededb8 (patch)
tree60c06d38a79e0113eb7777cc964c9a85fd6b1a0a /test/test_repo.py
parentc5e6ae25b9169e5ef070d791fb9d620e2357e24e (diff)
downloadgitpython-717bfe9f7aa9c64e585e1202da03b1d72dededb8.tar.gz
Added support of spaces for clone multi_options
Diffstat (limited to 'test/test_repo.py')
-rw-r--r--test/test_repo.py4
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: