Never sign byre's own commits on the server

This commit is contained in:
Ian Gulliver
2026-10-21 14:24:34 -07:00
parent a7cfd91399
commit 35683e1114
4 changed files with 9 additions and 14 deletions
+5 -1
View File
@@ -384,7 +384,11 @@ func runNetwork(ctx context.Context, dir string, args ...string) (string, string
}
func runCodeInput(ctx context.Context, dir string, env []string, stdin io.Reader, args ...string) (string, string, int, error) {
cmd := procgroup.CommandContext(ctx, "git", args...)
argv := args
if args[0] != "config" {
argv = append([]string{"-c", "commit.gpgsign=false"}, args...)
}
cmd := procgroup.CommandContext(ctx, "git", argv...)
cmd.Dir = dir
cmd.Env = append(os.Environ(), env...)
cmd.Stdin = stdin