aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-13 05:02:11 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-13 05:02:11 -0400
commit4c1452574a14737b52b13ee2726fb5dd53f56cc1 (patch)
tree91618a20f058db0195830a90d27c96cd6cea4c78 /routers
parentea74be2f2eb2356666c39448019956f9fe1c1f99 (diff)
downloadgitea-4c1452574a14737b52b13ee2726fb5dd53f56cc1.tar.gz
gitea-4c1452574a14737b52b13ee2726fb5dd53f56cc1.zip
go get
Diffstat (limited to 'routers')
-rw-r--r--routers/dashboard.go5
-rw-r--r--routers/repo/repo.go4
2 files changed, 0 insertions, 9 deletions
diff --git a/routers/dashboard.go b/routers/dashboard.go
index 12635412ad..2c81cf23c1 100644
--- a/routers/dashboard.go
+++ b/routers/dashboard.go
@@ -11,11 +11,6 @@ import (
)
func Home(ctx *middleware.Context) {
- if ctx.Query("go-get") == "1" {
- ctx.Write(base.GetGoGetMetaList())
- return
- }
-
if ctx.IsSigned {
user.Dashboard(ctx)
return
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index a7088d5552..dda26899d0 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -107,10 +107,6 @@ func MigratePost(ctx *middleware.Context, form auth.MigrateRepoForm) {
}
func Single(ctx *middleware.Context, params martini.Params) {
- if ctx.Query("go-get") == "1" {
- base.GoGetMetas[strings.TrimSuffix(ctx.Repo.CloneLink.HTTPS, ".git")] = true
- }
-
branchName := ctx.Repo.BranchName
userName := ctx.Repo.Owner.Name
repoName := ctx.Repo.Repository.Name