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.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) {