diff --git a/swh/loader/git/tests/test_directory.py b/swh/loader/git/tests/test_directory.py
index 2daba7aa61853d96b5281644377e0cd9679a33a5..aeab0f1959b4949970534befb85ad051f19611d2 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(