From 86931f546f8fc7229f1d606f5ffdef47de137594 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 16 Nov 2017 18:43:03 -0500 Subject: [PATCH] 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. --- pkg/context/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/context/context.go b/pkg/context/context.go index 0b1ebbc71..1457b696a 100644 --- a/pkg/context/context.go +++ b/pkg/context/context.go @@ -255,7 +255,7 @@ func Contexter() macaron.Handler { `, 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}",