~edwargix/git.sr.ht

8f88443fd9f7f5fcde73876f155acacaa3a39ab0 — наб 4 years ago e42fe33
Only print the raw builds.sr.ht response with -o debug

Fixes e42fe33f2f7748c436f042a9808dea5328114e99,
with which all pushes to printed this:
https://twitter.com/nabijaczleweli/status/1290769322911113218
1 files changed, 3 insertions(+), 1 deletions(-)

M gitsrht-update-hook/post-update.go
M gitsrht-update-hook/post-update.go => gitsrht-update-hook/post-update.go +3 -1
@@ 259,7 259,9 @@ func postUpdate() {
			logger.Printf("Submitted %d builds for %s",
				len(results), refname)
			for _, result := range results {
				log.Printf("[debug] builds.sr.ht response: \n%s", result.Response)
				if _, ok := options["debug"]; ok {
					log.Printf("[debug] builds.sr.ht response: \n%s", result.Response)
				}
				log.Printf("\033[94m%s\033[0m [%s]", result.Url, result.Name)
			}
			nbuilds += len(results)