You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ju...@apache.org on 2023/01/21 07:52:24 UTC

[buildstream] branch juerg/git created (now 20bf4a281)

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

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


      at 20bf4a281 tests/testutils/repo/git.py: Fix submodule tests with recent git

This branch includes the following new commits:

     new 20bf4a281 tests/testutils/repo/git.py: Fix submodule tests with recent git

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[buildstream] 01/01: tests/testutils/repo/git.py: Fix submodule tests with recent git

Posted by ju...@apache.org.
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 <j...@bitron.ch>
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()