Skip to content

Commit c8460e2

Browse files
committed
fixed git submodule tests
1 parent 6d10384 commit c8460e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mxdev/tests/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ def add_file(self, fname, msg=None):
167167
def add_submodule(self, submodule: "GitRepo", submodule_name: str):
168168
assert isinstance(submodule, GitRepo)
169169
assert isinstance(submodule_name, str)
170+
171+
# Allow file protocol
172+
# This is needed for the submodule to be added from a local path
173+
self("git config --global protocol.file.allow always")
170174
self(f"git submodule add {submodule.url}")
171175
self("git add .gitmodules")
172176
self(f"git add {submodule_name}")

0 commit comments

Comments
 (0)