Never sign byre's own commits on the server
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user