summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorPeter Smit <peter@smitmail.eu>2015-02-17 10:36:17 +0200
committerPeter Smit <peter@smitmail.eu>2015-02-17 10:36:17 +0200
commite6fc58a74461bd67efb06fc2e5658265ede2edb5 (patch)
tree95c72c548ad48163c72534a05853eb0faadf007d /routers
parentd85366930c94145c8f1119ff0b6bb95d77c5200e (diff)
downloadgitea-e6fc58a74461bd67efb06fc2e5658265ede2edb5.tar.gz
gitea-e6fc58a74461bd67efb06fc2e5658265ede2edb5.zip
Remove GoGet option from repository and handle it with ?go-get=1 instead
The normal go get protocol is to show the go-import meta tag when ?go-get=1 is appended to the url. This commit implements that behaviour and cleans the go-get option from the repository settings page.
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/setting.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go
index 33bf1eab28..8368513ad8 100644
--- a/routers/repo/setting.go
+++ b/routers/repo/setting.go
@@ -8,9 +8,9 @@ import (
"encoding/json"
"errors"
"fmt"
+ "path"
"strings"
"time"
- "path"
"github.com/Unknwon/com"
@@ -84,7 +84,6 @@ func SettingsPost(ctx *middleware.Context, form auth.RepoSettingForm) {
ctx.Repo.Repository.Description = form.Description
ctx.Repo.Repository.Website = form.Website
ctx.Repo.Repository.IsPrivate = form.Private
- ctx.Repo.Repository.IsGoget = form.GoGet
if err := models.UpdateRepository(ctx.Repo.Repository); err != nil {
ctx.Handle(404, "UpdateRepository", err)
return