generated from EmbarkStudios/opensource-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force disable GPG commit signing in tests (#41)
By default gix will honor the user's settings (repo, global etc) but this breaks testing if the user has GPG signing enabled, which causes the commit ids to be different from what's expected. Resolves: #29
- Loading branch information
1 parent
e3c6ff1
commit 32d6b22
Showing
3 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
} | ||
|
||
|