|
|
@ -15,7 +15,7 @@ import ( |
|
|
|
"strings" |
|
|
|
"strings" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/codegangsta/cli" |
|
|
|
"github.com/codegangsta/cli" |
|
|
|
"github.com/qiniu/log" |
|
|
|
"github.com/gogits/gogs/modules/log" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/gogits/git" |
|
|
|
"github.com/gogits/git" |
|
|
|
"github.com/gogits/gogs/models" |
|
|
|
"github.com/gogits/gogs/models" |
|
|
@ -195,9 +195,9 @@ func runServ(k *cli.Context) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// update
|
|
|
|
// update
|
|
|
|
w, _ := os.Create("serve.log") |
|
|
|
//w, _ := os.Create("serve.log")
|
|
|
|
defer w.Close() |
|
|
|
//defer w.Close()
|
|
|
|
log.SetOutput(w) |
|
|
|
//log.SetOutput(w)
|
|
|
|
|
|
|
|
|
|
|
|
var t = "ok refs/heads/" |
|
|
|
var t = "ok refs/heads/" |
|
|
|
var i int |
|
|
|
var i int |
|
|
|