diff options
Diffstat (limited to 'internal/context/go_get.go')
-rw-r--r-- | internal/context/go_get.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/context/go_get.go b/internal/context/go_get.go index 06417ebf..b83eda83 100644 --- a/internal/context/go_get.go +++ b/internal/context/go_get.go @@ -10,6 +10,7 @@ import ( "gogs.io/gogs/internal/conf" "gogs.io/gogs/internal/db" + "gogs.io/gogs/internal/repoutil" ) // ServeGoGet does quick responses for appropriate go-get meta with status OK @@ -52,7 +53,7 @@ func ServeGoGet() macaron.Handler { `, map[string]string{ "GoGetImport": path.Join(conf.Server.URL.Host, conf.Server.Subpath, ownerName, repoName), - "CloneLink": db.ComposeHTTPSCloneURL(ownerName, repoName), + "CloneLink": repoutil.HTTPSCloneURL(ownerName, repoName), "GoDocDirectory": prefix + "{/dir}", "GoDocFile": prefix + "{/dir}/{file}#L{line}", "InsecureFlag": insecureFlag, |