This is an automated email from the ASF dual-hosted git repository.

juergbi pushed a commit to branch juerg/git
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 20bf4a28157c7f70f67910a3ddb187f7d75ac8cd
Author: Jürg Billeter <[email protected]>
AuthorDate: Sat Jan 21 08:47:16 2023 +0100

    tests/testutils/repo/git.py: Fix submodule tests with recent git
    
    git 2.38.1+ (and backports to earlier branches) changed the default
    value of `protocol.file.allow` to `user`, which breaks submodule tests.
---
 tests/testutils/repo/git.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/testutils/repo/git.py b/tests/testutils/repo/git.py
index 7882be162..050d10ef1 100644
--- a/tests/testutils/repo/git.py
+++ b/tests/testutils/repo/git.py
@@ -78,7 +78,7 @@ class Git(Repo):
         if url is not None:
             submodule["url"] = url
         self.submodules[subdir] = submodule
-        self._run_git("submodule", "add", url, subdir)
+        self._run_git("-c", "protocol.file.allow=always", "submodule", "add", 
url, subdir)
         self._run_git("commit", "-m", "Added the submodule")
         return self.latest_commit()
 

Reply via email to