From 9a58adb5e664e975db565e693f0abb01998faa68 Mon Sep 17 00:00:00 2001 From: Axel Aguado Date: Sat, 21 Jan 2023 13:41:07 -0600 Subject: [PATCH] Use HTTPS when using smmap repo to test submodule command. This fixes an issue introduced by a security vulnerability fix in git 2.38.1. --- test/test_submodule.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_submodule.py b/test/test_submodule.py index 982226411..856468fc1 100644 --- a/test/test_submodule.py +++ b/test/test_submodule.py @@ -712,7 +712,7 @@ def test_add_empty_repo(self, rwdir): def test_list_only_valid_submodules(self, rwdir): repo_path = osp.join(rwdir, "parent") repo = git.Repo.init(repo_path) - repo.git.submodule("add", self._small_repo_url(), "module") + repo.git.submodule("add", Git.polish_url("https://github.com/gitpython-developers/smmap.git"), "module") repo.index.commit("add submodule") assert len(repo.submodules) == 1 @@ -739,7 +739,7 @@ def test_list_only_valid_submodules(self, rwdir): @with_rw_directory def test_git_submodules_and_add_sm_with_new_commit(self, rwdir): parent = git.Repo.init(osp.join(rwdir, "parent")) - parent.git.submodule("add", self._small_repo_url(), "module") + parent.git.submodule("add", Git.polish_url("https://github.com/gitpython-developers/smmap.git"), "module") parent.index.commit("added submodule") assert len(parent.submodules) == 1