diff options
author | Unknwon <u@gogs.io> | 2017-11-16 18:43:03 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-11-16 18:43:03 -0500 |
commit | 86931f546f8fc7229f1d606f5ffdef47de137594 (patch) | |
tree | 444ff5cce40b76de5a903180d83ed82276eaaf84 /pkg | |
parent | ae40bb00b3a53bcb0143a6c8b3c7bd087b7a3962 (diff) |
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.
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/context/context.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/context/context.go b/pkg/context/context.go index 0b1ebbc7..1457b696 100644 --- a/pkg/context/context.go +++ b/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}", |