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 /templates/ng | |
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 'templates/ng')
-rw-r--r-- | templates/ng/base/head.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/ng/base/head.tmpl b/templates/ng/base/head.tmpl index 40a7d28ff2..f2a235bd43 100644 --- a/templates/ng/base/head.tmpl +++ b/templates/ng/base/head.tmpl @@ -7,7 +7,7 @@ <meta name="description" content="Gogs(Go Git Service) a painless self-hosted Git Service written in Go" /> <meta name="keywords" content="go, git, self-hosted, gogs"> <meta name="_csrf" content="{{.CsrfToken}}" /> - {{if .Repository.IsGoget}}<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">{{end}} + {{if .GoGetImport}}<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">{{end}} <link rel="shortcut icon" href="{{AppSubUrl}}/img/favicon.png" /> |