Skip to content

Commit 9a58adb

Browse files
committed
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.
1 parent f594266 commit 9a58adb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_submodule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ def test_add_empty_repo(self, rwdir):
712712
def test_list_only_valid_submodules(self, rwdir):
713713
repo_path = osp.join(rwdir, "parent")
714714
repo = git.Repo.init(repo_path)
715-
repo.git.submodule("add", self._small_repo_url(), "module")
715+
repo.git.submodule("add", Git.polish_url("https://github.com/gitpython-developers/smmap.git"), "module")
716716
repo.index.commit("add submodule")
717717

718718
assert len(repo.submodules) == 1
@@ -739,7 +739,7 @@ def test_list_only_valid_submodules(self, rwdir):
739739
@with_rw_directory
740740
def test_git_submodules_and_add_sm_with_new_commit(self, rwdir):
741741
parent = git.Repo.init(osp.join(rwdir, "parent"))
742-
parent.git.submodule("add", self._small_repo_url(), "module")
742+
parent.git.submodule("add", Git.polish_url("https://github.com/gitpython-developers/smmap.git"), "module")
743743
parent.index.commit("added submodule")
744744

745745
assert len(parent.submodules) == 1

0 commit comments

Comments
 (0)