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 2017-11-16 18:43:03 -05:00
parent ae40bb00b3
commit 86931f546f
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
1 changed files with 1 additions and 1 deletions

View File

@ -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}",