Browse Source

repo: fix go-get meta tags (#4832)

The first part in go-import should be the root import path. It
included subpath when 'go get' with a subpath and was not correct.
pull/4722/merge
Unknwon 7 years ago
parent
commit
86931f546f
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 2
      pkg/context/context.go

2
pkg/context/context.go

@ -255,7 +255,7 @@ func Contexter() macaron.Handler {
</body>
</html>
`, map[string]string{
"GoGetImport": path.Join(setting.Domain, setting.AppSubURL, c.Link),
"GoGetImport": path.Join(setting.Domain, setting.AppSubURL, repo.FullName()),
"CloneLink": models.ComposeHTTPSCloneURL(ownerName, repoName),
"GoDocDirectory": prefix + "{/dir}",
"GoDocFile": prefix + "{/dir}/{file}#L{line}",

Loading…
Cancel
Save