]> ruderich.org/simon Gitweb - punyci/punyci.git/commitdiff
Rename "internal-post-receive" to "internal-background"
authorSimon Ruderich <simon@ruderich.org>
Sun, 22 Feb 2026 18:08:10 +0000 (19:08 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 22 Feb 2026 18:12:59 +0000 (19:12 +0100)
main.go

diff --git a/main.go b/main.go
index 021ae71b4efd69f42187cf4cf9c9e594c4311056..e02fb3390619f938520ef7aa25fe648995f553d7 100644 (file)
--- 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