diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-13 01:03:16 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-13 01:03:16 -0400 |
commit | d093406634f2896459d5abf5c7f6d2fd98c0812b (patch) | |
tree | 06dc0741d90258def066d32645a2e2a48b7467b2 | |
parent | 8c960917279d80c6137f7ccd9cc3cf9ed5fee098 (diff) | |
download | gitea-d093406634f2896459d5abf5c7f6d2fd98c0812b.tar.gz gitea-d093406634f2896459d5abf5c7f6d2fd98c0812b.zip |
Fix import path
-rw-r--r-- | routers/repo/single.go | 7 | ||||
-rw-r--r-- | web.go | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/routers/repo/single.go b/routers/repo/single.go index 811aed3993..476daaca77 100644 --- a/routers/repo/single.go +++ b/routers/repo/single.go @@ -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) { @@ -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"), |