diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-11-05 14:35:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-05 06:35:54 +0000 |
commit | 61c35590c793449d3133b00f58302b5cce90d69c (patch) | |
tree | b546a0aa29f9d906ad7ab3e8b28e746d23016577 /routers/web/goget.go | |
parent | 4a469c8e1b3c1d153316aec9fd8cbdd3e1dd54e8 (diff) | |
download | gitea-61c35590c793449d3133b00f58302b5cce90d69c.tar.gz gitea-61c35590c793449d3133b00f58302b5cce90d69c.zip |
Refactor RepoRefByType (#32413)
1. clarify the "filepath" could(should) contain "{ref}"
2. remove unclear RepoRefLegacy and RepoRefAny, use RepoRefUnknown to guess
3. by the way, avoid using AppURL
Diffstat (limited to 'routers/web/goget.go')
-rw-r--r-- | routers/web/goget.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/goget.go b/routers/web/goget.go index 8d5612ebfe..3714dd8eb0 100644 --- a/routers/web/goget.go +++ b/routers/web/goget.go @@ -65,7 +65,7 @@ func goGet(ctx *context.Context) { insecure = "--insecure " } - goGetImport := context.ComposeGoGetImport(ownerName, trimmedRepoName) + goGetImport := context.ComposeGoGetImport(ctx, ownerName, trimmedRepoName) var cloneURL string if setting.Repository.GoGetCloneURLProtocol == "ssh" { |