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.
This commit is contained in:
Unknwon
2017-11-16 18:43:03 -05:00
parent ae40bb00b3
commit 86931f546f

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