]> source.dussan.org Git - gitea.git/commitdiff
Fix import path
authorUnknown <joe2010xtmf@163.com>
Thu, 13 Mar 2014 05:03:16 +0000 (01:03 -0400)
committerUnknown <joe2010xtmf@163.com>
Thu, 13 Mar 2014 05:03:16 +0000 (01:03 -0400)
routers/repo/single.go
web.go

index 811aed39933845e3a0ab527e293673783e965255..476daaca777ba5ff5b9b614fc9d382ae681e594b 100644 (file)
@@ -4,12 +4,13 @@ import (
        "net/http"
 
        "github.com/codegangsta/martini"
+       "github.com/martini-contrib/render"
+       "github.com/martini-contrib/sessions"
+
        "github.com/gogits/gogs/models"
        "github.com/gogits/gogs/modules/auth"
        "github.com/gogits/gogs/modules/base"
-       "github.com/martini-contrib/render"
-       "github.com/martini-contrib/sessions"
-       "github.com/qiniu/log"
+       "github.com/gogits/gogs/modules/log"
 )
 
 func Single(params martini.Params, req *http.Request, r render.Render, data base.TmplData, session sessions.Session) {
diff --git a/web.go b/web.go
index 775735adc608b2aeac89e809f7782f084814fea1..f108b1cf728ec21c4e87216a4f2d1bf7fefb3520 100644 (file)
--- a/web.go
+++ b/web.go
@@ -76,7 +76,7 @@ func runWeb(*cli.Context) {
        m.Any("/repo/list", auth.SignInRequire(false), repo.List)
        m.Get("/:username/:reponame", auth.SignInRequire(false), repo.Single)
 
-       m.Get("/:username/:reponame", repo.Repo)
+       //m.Get("/:username/:reponame", repo.Repo)
 
        listenAddr := fmt.Sprintf("%s:%s",
                base.Cfg.MustValue("server", "HTTP_ADDR"),