From c590b80ed324d7168ffcb1163f9bf0260609fe09 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Thu, 6 Jun 2024 08:44:39 +0200 Subject: [PATCH] Don't try to sign git commits when running tests I have git set up to always sign with a key that requires a password, this would require me to enter that password when running tests. Git allows overwriting config for a single invocation, lets just do that --- test/rbs/collection/sources/git_test.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/rbs/collection/sources/git_test.rb b/test/rbs/collection/sources/git_test.rb index 108f826d8..e567c5bb0 100644 --- a/test/rbs/collection/sources/git_test.rb +++ b/test/rbs/collection/sources/git_test.rb @@ -56,6 +56,8 @@ def test_resolved_revision_updated_after_fetch git "init", chdir: origin_repo git "config", "user.email", "you@example.com", chdir: origin_repo git "config", "user.name", "Your Name", chdir: origin_repo + # Ignore potential signing key protected by passphrase + git "config", "commit.gpgsign", "false", chdir: origin_repo git "checkout", "-b", "main", chdir: origin_repo git "commit", "--allow-empty", "-m", "Initial commit", chdir: origin_repo