summaryrefslogtreecommitdiffstats
path: root/routers/repo/upload.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/upload.go')
-rw-r--r--routers/repo/upload.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/upload.go b/routers/repo/upload.go
index c77bdce81a..5e0f91668f 100644
--- a/routers/repo/upload.go
+++ b/routers/repo/upload.go
@@ -39,7 +39,7 @@ func UploadFile(ctx *context.Context) {
repoName := ctx.Repo.Repository.Name
branchName := ctx.Repo.BranchName
branchLink := ctx.Repo.RepoLink + "/src/" + branchName
- treeName := ctx.Repo.TreeName
+ treeName := ctx.Repo.TreePath
treeNames := []string{""}
if len(treeName) > 0 {