From 6e5dd555ba1687d40e6f29b1be1b24b21ea208ae Mon Sep 17 00:00:00 2001 From: Antoine Lambert <anlambert@softwareheritage.org> Date: Wed, 8 Jan 2025 13:05:38 +0100 Subject: [PATCH] test_directory: Ensure to not sign commits It can lead to test failures if commit signing is globally enabled in git configuration. --- swh/loader/git/tests/test_directory.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/swh/loader/git/tests/test_directory.py b/swh/loader/git/tests/test_directory.py index 2daba7aa..aeab0f19 100644 --- a/swh/loader/git/tests/test_directory.py +++ b/swh/loader/git/tests/test_directory.py @@ -336,6 +336,11 @@ def test_loader_git_directory_without_or_with_submodule( check=True, cwd=repo.path, ) + run( + ["git", "config", "commit.gpgsign", "false"], + check=True, + cwd=repo.path, + ) # add the repository served by the simple_git_repository_url fixture as a # submodule in it run( -- GitLab