summaryrefslogtreecommitdiffstats
path: root/modules/auth
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 /modules/auth
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 'modules/auth')
-rw-r--r--modules/auth/repo_form.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index 36e62f04fb..c771dd59b8 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -52,7 +52,6 @@ type RepoSettingForm struct {
Branch string `form:"branch"`
Interval int `form:"interval"`
Private bool `form:"private"`
- GoGet bool `form:"goget"`
}
func (f *RepoSettingForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {