~edwargix/git.sr.ht

0357f5c732fd34210b157a915c21f6a154ce56cb — Drew DeVault 6 years ago ae9cf39
gitsrht-update-hook: gofmt
2 files changed, 9 insertions(+), 9 deletions(-)

M gitsrht-update-hook/post-update.go
M gitsrht-update-hook/submitter.go
M gitsrht-update-hook/post-update.go => gitsrht-update-hook/post-update.go +8 -8
@@ 278,13 278,13 @@ func postUpdate() {
	}

	procAttr := syscall.ProcAttr{
        Dir:   wd,
        Files: []uintptr{os.Stdin.Fd(), os.Stdout.Fd(), os.Stderr.Fd()},
        Env:   os.Environ(),
        Sys: &syscall.SysProcAttr{
            Foreground: false,
        },
    }
		Dir:   wd,
		Files: []uintptr{os.Stdin.Fd(), os.Stdout.Fd(), os.Stderr.Fd()},
		Env:   os.Environ(),
		Sys: &syscall.SysProcAttr{
			Foreground: false,
		},
	}
	pid, err := syscall.ForkExec(hook, []string{
		"hooks/stage-3", string(deliveriesJson), string(payloadBytes),
	}, &procAttr)


@@ 292,7 292,7 @@ func postUpdate() {
		log.Fatalf("Failed to execute stage 3: %v", err)
	}

	logger.Printf("Executing stage 3 to record %d sync deliveries and make " +
	logger.Printf("Executing stage 3 to record %d sync deliveries and make "+
		"%d async deliveries (pid %d)", len(deliveries),
		len(dbinfo.AsyncWebhooks), pid)
}

M gitsrht-update-hook/submitter.go => gitsrht-update-hook/submitter.go +1 -1
@@ 75,7 75,7 @@ func (submitter GitBuildSubmitter) FindManifests() (map[string]string, error) {
		for {
			file, err = entries.Next()
			if file == nil || err != nil {
				break;
				break
			}
			if strings.HasSuffix(file.Name, ".yml") {
				files = append(files, file)