From c8460e2e034b744413a39b5cc1e1b580ec6c21fb Mon Sep 17 00:00:00 2001 From: Philipp Auersperg-Castell Date: Fri, 12 Apr 2024 16:58:08 +0200 Subject: [PATCH] fixed git submodule tests --- src/mxdev/tests/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mxdev/tests/utils.py b/src/mxdev/tests/utils.py index 0a147ce..5307b41 100644 --- a/src/mxdev/tests/utils.py +++ b/src/mxdev/tests/utils.py @@ -167,6 +167,10 @@ def add_file(self, fname, msg=None): def add_submodule(self, submodule: "GitRepo", submodule_name: str): assert isinstance(submodule, GitRepo) assert isinstance(submodule_name, str) + + # Allow file protocol + # This is needed for the submodule to be added from a local path + self("git config --global protocol.file.allow always") self(f"git submodule add {submodule.url}") self("git add .gitmodules") self(f"git add {submodule_name}")