Skip to content

Commit

Permalink
Don't try to sign git commits when running tests
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Earlopain committed Jun 6, 2024
1 parent 2a6c00b commit c590b80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/rbs/collection/sources/git_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def test_resolved_revision_updated_after_fetch
git "init", chdir: origin_repo
git "config", "user.email", "[email protected]", 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
Expand Down

0 comments on commit c590b80

Please sign in to comment.