Skip to content

Commit

Permalink
tests: Avoid use of user's GPG keys during tests
Browse files Browse the repository at this point in the history
The TestPullAdd test uses git CLI to perform a commit.
Contributors with signing enabled globally would have their GPG
configuration being used to sign that test commit.

This behaviour was transparent for contributors that do not use
secure keys which requires physical confirmation.
The new behaviour disables GPG signing for that test, which was
not required as part of the test.

Signed-off-by: Paulo Gomes <pjbgf@linux.com>
  • Loading branch information
pjbgf committed Mar 5, 2023
1 parent 7e345bb commit fba136d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worktree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (s *RepositorySuite) TestPullAdd(c *C) {
ExecuteOnPath(c, path,
"touch foo",
"git add foo",
"git commit -m foo foo",
"git commit --no-gpg-sign -m foo foo",
)

w, err := r.Worktree()
Expand Down

0 comments on commit fba136d

Please sign in to comment.