summaryrefslogtreecommitdiffstats
path: root/routers/web/goget.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/goget.go')
-rw-r--r--routers/web/goget.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/web/goget.go b/routers/web/goget.go
index 8a8e1797dc..6898f0f432 100644
--- a/routers/web/goget.go
+++ b/routers/web/goget.go
@@ -10,7 +10,7 @@ import (
"path"
"strings"
- "code.gitea.io/gitea/models"
+ repo_model "code.gitea.io/gitea/models/repo"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/util"
@@ -53,7 +53,7 @@ func goGet(ctx *context.Context) {
}
branchName := setting.Repository.DefaultBranch
- repo, err := models.GetRepositoryByOwnerAndName(ownerName, repoName)
+ repo, err := repo_model.GetRepositoryByOwnerAndName(ownerName, repoName)
if err == nil && len(repo.DefaultBranch) > 0 {
branchName = repo.DefaultBranch
}
@@ -79,7 +79,7 @@ func goGet(ctx *context.Context) {
</html>
`, map[string]string{
"GoGetImport": context.ComposeGoGetImport(ownerName, trimmedRepoName),
- "CloneLink": models.ComposeHTTPSCloneURL(ownerName, repoName),
+ "CloneLink": repo_model.ComposeHTTPSCloneURL(ownerName, repoName),
"GoDocDirectory": prefix + "{/dir}",
"GoDocFile": prefix + "{/dir}/{file}#L{line}",
"Insecure": insecure,