diff --git a/serve.go b/serve.go index f9e915ed..480b122f 100644 --- a/serve.go +++ b/serve.go @@ -13,6 +13,7 @@ import ( "os/exec" "strconv" "strings" + "time" "github.com/codegangsta/cli" "github.com/gogits/gogs/modules/log" @@ -205,6 +206,8 @@ func runServ(k *cli.Context) { return } + time.Sleep(time.Second) + // find push reference name var t = "ok refs/heads/" var i int