mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 12:14:27 +02:00
go get
This commit is contained in:
1 parent
d26a333dfb
commit
ea74be2f2e
5 files changed
+24
-1
No files matched your search
@@ -11,6 +11,11 @@ import (
|
||||
)
|
||||
|
||||
func Home(ctx *middleware.Context) {
|
||||
if ctx.Query("go-get") == "1" {
|
||||
ctx.Write(base.GetGoGetMetaList())
|
||||
return
|
||||
}
|
||||
|
||||
if ctx.IsSigned {
|
||||
user.Dashboard(ctx)
|
||||
return
|
||||
|
||||
@@ -107,6 +107,10 @@ func MigratePost(ctx *middleware.Context, form auth.MigrateRepoForm) {
|
||||
}
|
||||
|
||||
func Single(ctx *middleware.Context, params martini.Params) {
|
||||
if ctx.Query("go-get") == "1" {
|
||||
base.GoGetMetas[strings.TrimSuffix(ctx.Repo.CloneLink.HTTPS, ".git")] = true
|
||||
}
|
||||
|
||||
branchName := ctx.Repo.BranchName
|
||||
userName := ctx.Repo.Owner.Name
|
||||
repoName := ctx.Repo.Repository.Name
|
||||
|
||||
Reference in new issue
Block a user