diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-06 22:06:41 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-06 22:06:41 -0500 |
commit | 23eec252748c3ac7af2ae310aeac4ee4c9061fe9 (patch) | |
tree | 9f9d8834ef94451da2fb1d43ba63d0f130d61f79 /routers/repo/view.go | |
parent | 4e7eb5be9d3e9c9ba7238769d2b5f2f471d51b67 (diff) | |
download | gitea-23eec252748c3ac7af2ae310aeac4ee4c9061fe9.tar.gz gitea-23eec252748c3ac7af2ae310aeac4ee4c9061fe9.zip |
Fix #605, fix #255, fix #101
Diffstat (limited to 'routers/repo/view.go')
-rw-r--r-- | routers/repo/view.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/view.go b/routers/repo/view.go index 26fa0b4c76..162279acd1 100644 --- a/routers/repo/view.go +++ b/routers/repo/view.go @@ -34,7 +34,7 @@ func Home(ctx *middleware.Context) { rawLink := ctx.Repo.RepoLink + "/raw/" + branchName // Get tree path - treename := ctx.Params("*") + treename := ctx.Repo.TreeName if len(treename) > 0 && treename[len(treename)-1] == '/' { ctx.Redirect(repoLink + "/src/" + branchName + "/" + treename[:len(treename)-1]) |