Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force disable GPG commit signing in tests #41

Merged
merged 3 commits into from
Nov 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Force disable GPG commit signing in tests
Jake-Shadle committed Nov 6, 2023
commit 2946bb11075acaecea30e510517350fde05cf342
5 changes: 5 additions & 0 deletions tests/git.rs
Original file line number Diff line number Diff line change
@@ -205,6 +205,11 @@ impl FakeRemote {
.set_raw_value("committer", None, "email", "[email protected]")
.unwrap();

// Disable GPG signing, it breaks testing if the user has it enabled
config
.set_raw_value("commit", None, "gpgsign", "false")
.unwrap();

config.commit_auto_rollback().unwrap()
}