Browse Source

use the cloneLink variable in the go-get meta template

pull/5122/head
Miika Petäjäniemi 7 years ago
parent
commit
4e4a6f62da
  1. 2
      pkg/context/context.go

2
pkg/context/context.go

@ -266,7 +266,7 @@ func Contexter() macaron.Handler {
</html> </html>
`, map[string]string{ `, map[string]string{
"GoGetImport": path.Join(setting.Domain, setting.AppSubURL, repo.FullName()), "GoGetImport": path.Join(setting.Domain, setting.AppSubURL, repo.FullName()),
"CloneLink": models.ComposeHTTPSCloneURL(ownerName, repoName), "CloneLink": cloneLink,
"GoDocDirectory": prefix + "{/dir}", "GoDocDirectory": prefix + "{/dir}",
"GoDocFile": prefix + "{/dir}/{file}#L{line}", "GoDocFile": prefix + "{/dir}/{file}#L{line}",
}))) })))

Loading…
Cancel
Save