Disable GPG signing in test git commands to prevent prompts

This commit is contained in:
Canon
2026-03-12 13:27:21 +08:00
parent dbb561b892
commit dc108bdff7
@@ -26,7 +26,7 @@ public class GitServiceIntegrationTests : IDisposable
private async Task RunGitAsync(string workingDir, string args)
{
var result = await Cli.Wrap("git")
.WithArguments(args)
.WithArguments($"-c commit.gpgsign=false {args}")
.WithWorkingDirectory(workingDir)
.WithEnvironmentVariables(env => env
.Set("GIT_TERMINAL_PROMPT", "0")