From f7d5c9cdf57041f280fc01c555aabbbc314e3919 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Tue, 31 Mar 2015 01:07:24 +0200 Subject: Fix .gitignore and prettify hook message. --- gitolite-webhook/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gitolite-webhook') diff --git a/gitolite-webhook/main.go b/gitolite-webhook/main.go index 7d0fe5e..cfc171e 100644 --- a/gitolite-webhook/main.go +++ b/gitolite-webhook/main.go @@ -38,6 +38,7 @@ func main() { fmt.Println("Response Status:", resp.Status) body, _ := ioutil.ReadAll(resp.Body) - fmt.Println("Response Body:", string(body)) - + if string(body) != "" { + fmt.Println("Response Body:", string(body)) + } } -- cgit v1.2.3