Update link and remove code patches

This commit is contained in:
ave 2019-10-11 16:33:14 +03:00
parent a8ba0bedff
commit 02eade2a1f
No known key found for this signature in database
GPG Key ID: 09356ABAA42C842B
3 changed files with 7 additions and 118 deletions

View File

@ -1,12 +1,12 @@
# gitdab
![Transparent background gitdab logo](icons/gitdab_transparent.png)
Gitdab's scripts, icons and gitea customizations
# Gitdab
We run a fork of Gitea v1.8.0-rc3 with following code changes:
- Repo migrations are disabled to prevent leaking server's IP address.
- The description on embeds is changed.
Gitdab's scripts, icons and gitea customizations.
Various other changes are also applied to templates.
We run gitea with various template changes.
Historically we had some code changes, currently we don't have any of them, but we might get some more eventually. Those will be shared here as well.
## License

View File

@ -47,7 +47,7 @@
<i class="octicon octicon-code"></i> Open Source
</h1>
<p class="large">
Gitdab uses <a target="_blank" rel="noopener noreferrer" href="https://github.com/go-gitea/gitea/">Gitea</a>, which is open source. Also, all of our <a target="_blank" rel="noopener noreferrer" href="https://gitdab.com/ao/gitdab/">customizations, scripts and icons</a> are open source too.
Gitdab uses <a target="_blank" rel="noopener noreferrer" href="https://github.com/go-gitea/gitea/">Gitea</a>, which is open source. Also, all of our <a target="_blank" rel="noopener noreferrer" href="https://gitdab.com/a/gitdab/">customizations, scripts and icons</a> are open source too.
</p>
</div>
</div>

View File

@ -1,111 +0,0 @@
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 77dc62d4f..27af125f8 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -347,9 +347,9 @@ var (
Description string
Keywords string
}{
- Author: "Gitea - Git with a cup of tea",
- Description: "Gitea (Git with a cup of tea) is a painless self-hosted Git service written in Go",
- Keywords: "go,git,self-hosted,gitea",
+ Author: "Gitdab",
+ Description: "Gitdab is a dabful git site made by people, for people",
+ Keywords: "go,git,dab,self-hosted,gitea,gitdab",
},
}
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index fe54aa2a3..6af5a1e13 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -431,7 +431,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Combo("/repositories/:id", reqToken()).Get(repo.GetByID)
m.Group("/repos", func() {
- m.Post("/migrate", reqToken(), bind(auth.MigrateRepoForm{}), repo.Migrate)
+ // m.Post("/migrate", reqToken(), bind(auth.MigrateRepoForm{}), repo.Migrate)
m.Group("/:username/:reponame", func() {
m.Combo("").Get(repo.Get).Delete(reqToken(), repo.Delete)
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go
index e48b100af..016aecc5c 100644
--- a/routers/api/v1/repo/repo.go
+++ b/routers/api/v1/repo/repo.go
@@ -10,7 +10,7 @@ import (
"strings"
"code.gitea.io/gitea/models"
- "code.gitea.io/gitea/modules/auth"
+ // "code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
@@ -319,6 +319,7 @@ func CreateOrgRepo(ctx *context.APIContext, opt api.CreateRepoOption) {
}
// Migrate migrate remote git repository to gitea
+/*
func Migrate(ctx *context.APIContext, form auth.MigrateRepoForm) {
// swagger:operation POST /repos/migrate repository repoMigrate
// ---
@@ -416,6 +417,7 @@ func Migrate(ctx *context.APIContext, form auth.MigrateRepoForm) {
log.Trace("Repository migrated: %s/%s", ctxUser.Name, form.RepoName)
ctx.JSON(201, repo.APIFormat(models.AccessModeAdmin))
}
+*/
// Get one repository
func Get(ctx *context.APIContext) {
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index 236d66bd1..d5ab721f9 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -20,12 +20,12 @@ import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
- "code.gitea.io/gitea/modules/util"
+ // "code.gitea.io/gitea/modules/util"
)
const (
tplCreate base.TplName = "repo/create"
- tplMigrate base.TplName = "repo/migrate"
+ // tplMigrate base.TplName = "repo/migrate"
)
// MustBeNotBare render when a repo is a bare git dir
@@ -189,7 +189,7 @@ func CreatePost(ctx *context.Context, form auth.CreateRepoForm) {
handleCreateError(ctx, ctxUser, err, "CreatePost", tplCreate, &form)
}
-
+/*
// Migrate render migration of repository page
func Migrate(ctx *context.Context) {
ctx.Data["Title"] = ctx.Tr("new_migrate")
@@ -278,7 +278,7 @@ func MigratePost(ctx *context.Context, form auth.MigrateRepoForm) {
handleCreateError(ctx, ctxUser, err, "MigratePost", tplMigrate, &form)
}
-
+*/
// Action response for actions to a repository
func Action(ctx *context.Context) {
var err error
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index 4ca421065..38a322479 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -455,8 +455,8 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Group("/repo", func() {
m.Get("/create", repo.Create)
m.Post("/create", bindIgnErr(auth.CreateRepoForm{}), repo.CreatePost)
- m.Get("/migrate", repo.Migrate)
- m.Post("/migrate", bindIgnErr(auth.MigrateRepoForm{}), repo.MigratePost)
+ // m.Get("/migrate", repo.Migrate)
+ // m.Post("/migrate", bindIgnErr(auth.MigrateRepoForm{}), repo.MigratePost)
m.Group("/fork", func() {
m.Combo("/:repoid").Get(repo.Fork).
Post(bindIgnErr(auth.CreateRepoForm{}), repo.ForkPost)