Skip to content

Commit c590b80

Browse files
committed
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
1 parent 2a6c00b commit c590b80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/rbs/collection/sources/git_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ def test_resolved_revision_updated_after_fetch
5656
git "init", chdir: origin_repo
5757
git "config", "user.email", "[email protected]", chdir: origin_repo
5858
git "config", "user.name", "Your Name", chdir: origin_repo
59+
# Ignore potential signing key protected by passphrase
60+
git "config", "commit.gpgsign", "false", chdir: origin_repo
5961
git "checkout", "-b", "main", chdir: origin_repo
6062

6163
git "commit", "--allow-empty", "-m", "Initial commit", chdir: origin_repo

0 commit comments

Comments
 (0)