summaryrefslogtreecommitdiffstats
path: root/routers/repo/view.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/view.go')
-rw-r--r--routers/repo/view.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/view.go b/routers/repo/view.go
index c7e0003a35..173797cff5 100644
--- a/routers/repo/view.go
+++ b/routers/repo/view.go
@@ -56,7 +56,7 @@ func Home(ctx *context.Context) {
uploadFileLink := ctx.Repo.RepoLink + "/upload/" + branchName
// Get tree path
- treename := ctx.Repo.TreeName
+ treename := ctx.Repo.TreePath
if len(treename) > 0 {
if treename[len(treename)-1] == '/' {