aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Gomes <pjbgf@linux.com>2023-03-05 16:35:06 +0000
committerPaulo Gomes <pjbgf@linux.com>2023-03-05 16:57:48 +0000
commitfba136de01b6fe8c0530626587c7a1f7f6157563 (patch)
treeed410f8504420caa54a7006d95f92e8cd459cbd6
parent7e345bb5e163a4badefb0c54da3a057dcde50ed6 (diff)
downloadgo-git-fba136de01b6fe8c0530626587c7a1f7f6157563.tar.gz
tests: Avoid use of user's GPG keys during tests
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>
-rw-r--r--worktree_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/worktree_test.go b/worktree_test.go
index b57a77d..ac56a46 100644
--- a/worktree_test.go
+++ b/worktree_test.go
@@ -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()