From d547e06c33c0101a0a7869a22aff4db28556d1ec Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 22 Feb 2026 19:08:10 +0100 Subject: [PATCH] Rename "internal-post-receive" to "internal-background" --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 021ae71..e02fb33 100644 --- a/main.go +++ b/main.go @@ -51,8 +51,8 @@ func main() { if err != nil { log.Fatal(err) } - case "internal-post-receive": - err := internalPostReceive() + case "internal-background": + err := background() if err != nil { log.Fatal(err) } @@ -134,7 +134,7 @@ func foreground(oid, branch string, pushOptions []string) error { } // Continue in the background ("fork"), unless Wait was set - cmd := exec.Command(os.Args[0], "internal-post-receive") + cmd := exec.Command(os.Args[0], "internal-background") cmd.Stdin = bytes.NewReader(x) if info.Wait { cmd.Stdout = os.Stdout @@ -158,7 +158,7 @@ func foreground(oid, branch string, pushOptions []string) error { return nil } -func internalPostReceive() error { +func background() error { x, err := io.ReadAll(os.Stdin) if err != nil { return err -- 2.52.0