Gitdab's scripts, icons and gitea customizations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
4.0 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. diff --git a/modules/setting/setting.go b/modules/setting/setting.go
  2. index 77dc62d4f..27af125f8 100644
  3. --- a/modules/setting/setting.go
  4. +++ b/modules/setting/setting.go
  5. @@ -347,9 +347,9 @@ var (
  6. Description string
  7. Keywords string
  8. }{
  9. - Author: "Gitea - Git with a cup of tea",
  10. - Description: "Gitea (Git with a cup of tea) is a painless self-hosted Git service written in Go",
  11. - Keywords: "go,git,self-hosted,gitea",
  12. + Author: "Gitdab",
  13. + Description: "Gitdab is a dabful git site made by people, for people",
  14. + Keywords: "go,git,dab,self-hosted,gitea,gitdab",
  15. },
  16. }
  17. diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
  18. index fe54aa2a3..6af5a1e13 100644
  19. --- a/routers/api/v1/api.go
  20. +++ b/routers/api/v1/api.go
  21. @@ -431,7 +431,7 @@ func RegisterRoutes(m *macaron.Macaron) {
  22. m.Combo("/repositories/:id", reqToken()).Get(repo.GetByID)
  23. m.Group("/repos", func() {
  24. - m.Post("/migrate", reqToken(), bind(auth.MigrateRepoForm{}), repo.Migrate)
  25. + // m.Post("/migrate", reqToken(), bind(auth.MigrateRepoForm{}), repo.Migrate)
  26. m.Group("/:username/:reponame", func() {
  27. m.Combo("").Get(repo.Get).Delete(reqToken(), repo.Delete)
  28. diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go
  29. index e48b100af..016aecc5c 100644
  30. --- a/routers/api/v1/repo/repo.go
  31. +++ b/routers/api/v1/repo/repo.go
  32. @@ -10,7 +10,7 @@ import (
  33. "strings"
  34. "code.gitea.io/gitea/models"
  35. - "code.gitea.io/gitea/modules/auth"
  36. + // "code.gitea.io/gitea/modules/auth"
  37. "code.gitea.io/gitea/modules/context"
  38. "code.gitea.io/gitea/modules/log"
  39. "code.gitea.io/gitea/modules/setting"
  40. @@ -319,6 +319,7 @@ func CreateOrgRepo(ctx *context.APIContext, opt api.CreateRepoOption) {
  41. }
  42. // Migrate migrate remote git repository to gitea
  43. +/*
  44. func Migrate(ctx *context.APIContext, form auth.MigrateRepoForm) {
  45. // swagger:operation POST /repos/migrate repository repoMigrate
  46. // ---
  47. @@ -416,6 +417,7 @@ func Migrate(ctx *context.APIContext, form auth.MigrateRepoForm) {
  48. log.Trace("Repository migrated: %s/%s", ctxUser.Name, form.RepoName)
  49. ctx.JSON(201, repo.APIFormat(models.AccessModeAdmin))
  50. }
  51. +*/
  52. // Get one repository
  53. func Get(ctx *context.APIContext) {
  54. diff --git a/routers/repo/repo.go b/routers/repo/repo.go
  55. index 236d66bd1..d5ab721f9 100644
  56. --- a/routers/repo/repo.go
  57. +++ b/routers/repo/repo.go
  58. @@ -20,12 +20,12 @@ import (
  59. "code.gitea.io/gitea/modules/context"
  60. "code.gitea.io/gitea/modules/log"
  61. "code.gitea.io/gitea/modules/setting"
  62. - "code.gitea.io/gitea/modules/util"
  63. + // "code.gitea.io/gitea/modules/util"
  64. )
  65. const (
  66. tplCreate base.TplName = "repo/create"
  67. - tplMigrate base.TplName = "repo/migrate"
  68. + // tplMigrate base.TplName = "repo/migrate"
  69. )
  70. // MustBeNotBare render when a repo is a bare git dir
  71. @@ -189,7 +189,7 @@ func CreatePost(ctx *context.Context, form auth.CreateRepoForm) {
  72. handleCreateError(ctx, ctxUser, err, "CreatePost", tplCreate, &form)
  73. }
  74. -
  75. +/*
  76. // Migrate render migration of repository page
  77. func Migrate(ctx *context.Context) {
  78. ctx.Data["Title"] = ctx.Tr("new_migrate")
  79. @@ -278,7 +278,7 @@ func MigratePost(ctx *context.Context, form auth.MigrateRepoForm) {
  80. handleCreateError(ctx, ctxUser, err, "MigratePost", tplMigrate, &form)
  81. }
  82. -
  83. +*/
  84. // Action response for actions to a repository
  85. func Action(ctx *context.Context) {
  86. var err error
  87. diff --git a/routers/routes/routes.go b/routers/routes/routes.go
  88. index 4ca421065..38a322479 100644
  89. --- a/routers/routes/routes.go
  90. +++ b/routers/routes/routes.go
  91. @@ -455,8 +455,8 @@ func RegisterRoutes(m *macaron.Macaron) {
  92. m.Group("/repo", func() {
  93. m.Get("/create", repo.Create)
  94. m.Post("/create", bindIgnErr(auth.CreateRepoForm{}), repo.CreatePost)
  95. - m.Get("/migrate", repo.Migrate)
  96. - m.Post("/migrate", bindIgnErr(auth.MigrateRepoForm{}), repo.MigratePost)
  97. + // m.Get("/migrate", repo.Migrate)
  98. + // m.Post("/migrate", bindIgnErr(auth.MigrateRepoForm{}), repo.MigratePost)
  99. m.Group("/fork", func() {
  100. m.Combo("/:repoid").Get(repo.Fork).
  101. Post(bindIgnErr(auth.CreateRepoForm{}), repo.ForkPost)