aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/upload.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-24 21:35:03 -0700
committerUnknwon <u@gogs.io>2016-08-24 21:35:03 -0700
commitf8a48ffaad481ee9eaa8a42e0e7d64c12c90ef86 (patch)
tree21ee3e7965c77c16fcdaa209f01cebae6a809625 /routers/repo/upload.go
parent67fb0fe6a5783f772abfb5438a154435dafff4de (diff)
Web editor: improve code quality
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 c77bdce8..5e0f9166 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 {