From cd89f6c5021ef129ecc4652aa620a3562ae30979 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 14 Aug 2016 23:02:14 -0700 Subject: Web editor: improve edit file and diff preview --- routers/repo/upload.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'routers/repo/upload.go') diff --git a/routers/repo/upload.go b/routers/repo/upload.go index efecc208..a7402cfc 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) { -- cgit v1.2.3