aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/goget.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/goget.go')
-rw-r--r--routers/web/goget.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/goget.go b/routers/web/goget.go
index 3714dd8eb0..79d5c2b207 100644
--- a/routers/web/goget.go
+++ b/routers/web/goget.go
@@ -69,9 +69,9 @@ func goGet(ctx *context.Context) {
var cloneURL string
if setting.Repository.GoGetCloneURLProtocol == "ssh" {
- cloneURL = repo_model.ComposeSSHCloneURL(ownerName, repoName)
+ cloneURL = repo_model.ComposeSSHCloneURL(ctx.Doer, ownerName, repoName)
} else {
- cloneURL = repo_model.ComposeHTTPSCloneURL(ownerName, repoName)
+ cloneURL = repo_model.ComposeHTTPSCloneURL(ctx, ownerName, repoName)
}
goImportContent := fmt.Sprintf("%s git %s", goGetImport, cloneURL /*CloneLink*/)
goSourceContent := fmt.Sprintf("%s _ %s %s", goGetImport, prefix+"{/dir}" /*GoDocDirectory*/, prefix+"{/dir}/{file}#L{line}" /*GoDocFile*/)