diff options
author | Peter Smit <peter@smitmail.eu> | 2015-02-17 10:36:17 +0200 |
---|---|---|
committer | Peter Smit <peter@smitmail.eu> | 2015-02-17 10:36:17 +0200 |
commit | e6fc58a74461bd67efb06fc2e5658265ede2edb5 (patch) | |
tree | 95c72c548ad48163c72534a05853eb0faadf007d /routers | |
parent | d85366930c94145c8f1119ff0b6bb95d77c5200e (diff) | |
download | gitea-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.go | 3 |
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 |