aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--serve.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/serve.go b/serve.go
index f9e915ed84..480b122f3b 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