summaryrefslogtreecommitdiffstats
path: root/routers/repo/upload.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-14 23:02:14 -0700
committerUnknwon <u@gogs.io>2016-08-14 23:52:24 -0700
commitcd89f6c5021ef129ecc4652aa620a3562ae30979 (patch)
treebf476d81479f249d5a1cfb195af2fdee3890d9a1 /routers/repo/upload.go
parent660e7a178a9d72a03d13f704aca61726b4672232 (diff)
downloadgitea-cd89f6c5021ef129ecc4652aa620a3562ae30979.tar.gz
gitea-cd89f6c5021ef129ecc4652aa620a3562ae30979.zip
Web editor: improve edit file and diff preview
Diffstat (limited to 'routers/repo/upload.go')
-rw-r--r--routers/repo/upload.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/routers/repo/upload.go b/routers/repo/upload.go
index efecc208fd..a7402cfc5d 100644
--- a/routers/repo/upload.go
+++ b/routers/repo/upload.go
@@ -170,12 +170,7 @@ func UploadFilePost(ctx *context.Context, form auth.UploadRepoFileForm) {
models.HookQueue.Add(ctx.Repo.Repository.ID)
}
- // Leaving this off until forked repos that get a branch can compare with forks master and not upstream
- //if oldBranchName != branchName {
- // ctx.Redirect(EscapeUrl(ctx.Repo.RepoLink + "/compare/" + oldBranchName + "..." + branchName))
- //} else {
- ctx.Redirect(EscapeUrl(ctx.Repo.RepoLink + "/src/" + branchName + "/" + treeName))
- //}
+ ctx.Redirect(ctx.Repo.RepoLink + "/src/" + branchName + "/" + treeName)
}
func UploadFileToServer(ctx *context.Context) {