mirror of
https://gitea.com/gitea/tea.git
synced 2026-09-10 07:26:33 -04:00
fix(test): disable gpg signing in worktree test repo
TestRepoFromPath_Worktree creates a throwaway temp repo and commits to it. On machines with commit.gpgsign=true in global config, the commit fails with 'No secret key'. Set commit.gpgsign=false in the temp repo's local config so the test is environment-independent.
This commit is contained in:
parent
6435b12202
commit
0613663ea5
|
|
@ -29,6 +29,8 @@ func TestRepoFromPath_Worktree(t *testing.T) {
|
|||
assert.NoError(t, cmd.Run())
|
||||
cmd = exec.Command("git", "-C", mainRepoPath, "config", "user.name", "Test User")
|
||||
assert.NoError(t, cmd.Run())
|
||||
cmd = exec.Command("git", "-C", mainRepoPath, "config", "commit.gpgsign", "false")
|
||||
assert.NoError(t, cmd.Run())
|
||||
|
||||
cmd = exec.Command("git", "-C", mainRepoPath, "remote", "add", "origin", "https://gitea.com/owner/repo.git")
|
||||
assert.NoError(t, cmd.Run())
|
||||
|
|
|
|||
Loading…
Reference in a new issue