mirror of https://github.com/gogs/gogs.git
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
parent
ae40bb00b3
commit
86931f546f
|
@ -255,7 +255,7 @@ func Contexter() macaron.Handler {
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
`, map[string]string{
|
`, 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),
|
"CloneLink": models.ComposeHTTPSCloneURL(ownerName, repoName),
|
||||||
"GoDocDirectory": prefix + "{/dir}",
|
"GoDocDirectory": prefix + "{/dir}",
|
||||||
"GoDocFile": prefix + "{/dir}/{file}#L{line}",
|
"GoDocFile": prefix + "{/dir}/{file}#L{line}",
|
||||||
|
|
Loading…
Reference in New Issue