diff options
author | Sandro Santilli <strk@kbt.io> | 2016-11-10 17:24:48 +0100 |
---|---|---|
committer | Thibault Meyer <0xbaadf00d@users.noreply.github.com> | 2016-11-10 17:24:48 +0100 |
commit | 4247304f5aeb791e3e201947478eef4964744146 (patch) | |
tree | 47a27cdaafe235512921fb1aba4a5c6738e4c384 /routers/repo | |
parent | 1c0a4e166fc3c37ebed528fc41b1cbca5a00556d (diff) | |
download | gitea-4247304f5aeb791e3e201947478eef4964744146.tar.gz gitea-4247304f5aeb791e3e201947478eef4964744146.zip |
Update import paths from github.com/go-gitea to code.gitea.io (#135)
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis
See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/branch.go | 4 | ||||
-rw-r--r-- | routers/repo/commit.go | 10 | ||||
-rw-r--r-- | routers/repo/download.go | 6 | ||||
-rw-r--r-- | routers/repo/editor.go | 16 | ||||
-rw-r--r-- | routers/repo/http.go | 12 | ||||
-rw-r--r-- | routers/repo/issue.go | 14 | ||||
-rw-r--r-- | routers/repo/middlewares.go | 6 | ||||
-rw-r--r-- | routers/repo/pull.go | 14 | ||||
-rw-r--r-- | routers/repo/release.go | 12 | ||||
-rw-r--r-- | routers/repo/repo.go | 16 | ||||
-rw-r--r-- | routers/repo/setting.go | 16 | ||||
-rw-r--r-- | routers/repo/view.go | 18 | ||||
-rw-r--r-- | routers/repo/webhook.go | 18 | ||||
-rw-r--r-- | routers/repo/wiki.go | 12 |
14 files changed, 87 insertions, 87 deletions
diff --git a/routers/repo/branch.go b/routers/repo/branch.go index 139b3fb237..3083133be2 100644 --- a/routers/repo/branch.go +++ b/routers/repo/branch.go @@ -5,8 +5,8 @@ package repo import ( - "github.com/go-gitea/gitea/modules/base" - "github.com/go-gitea/gitea/modules/context" + "code.gitea.io/gitea/modules/base" + "code.gitea.io/gitea/modules/context" ) const ( diff --git a/routers/repo/commit.go b/routers/repo/commit.go index 1fd4eb8d0b..0f5145a752 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -9,11 +9,11 @@ import ( "path" "github.com/Unknwon/paginater" - "github.com/go-gitea/git" - "github.com/go-gitea/gitea/models" - "github.com/go-gitea/gitea/modules/base" - "github.com/go-gitea/gitea/modules/context" - "github.com/go-gitea/gitea/modules/setting" + "code.gitea.io/git" + "code.gitea.io/gitea/models" + "code.gitea.io/gitea/modules/base" + "code.gitea.io/gitea/modules/context" + "code.gitea.io/gitea/modules/setting" ) const ( diff --git a/routers/repo/download.go b/routers/repo/download.go index 5cb8fb6817..654cc01399 100644 --- a/routers/repo/download.go +++ b/routers/repo/download.go @@ -8,10 +8,10 @@ import ( "io" "path" - "github.com/go-gitea/git" + "code.gitea.io/git" - "github.com/go-gitea/gitea/modules/base" - "github.com/go-gitea/gitea/modules/context" + "code.gitea.io/gitea/modules/base" + "code.gitea.io/gitea/modules/context" ) func ServeData(ctx *context.Context, name string, reader io.Reader) error { diff --git a/routers/repo/editor.go b/routers/repo/editor.go index b4aac27bea..ed5cbd4408 100644 --- a/routers/repo/editor.go +++ b/routers/repo/editor.go @@ -11,14 +11,14 @@ import ( "path" "strings" - "github.com/go-gitea/gitea/models" - "github.com/go-gitea/gitea/modules/auth" - "github.com/go-gitea/gitea/modules/base" - "github.com/go-gitea/gitea/modules/context" - "github.com/go-gitea/gitea/modules/log" - "github.com/go-gitea/gitea/modules/setting" - "github.com/go-gitea/gitea/modules/template" - "github.com/go-gitea/git" + "code.gitea.io/gitea/models" + "code.gitea.io/gitea/modules/auth" + "code.gitea.io/gitea/modules/base" + "code.gitea.io/gitea/modules/context" + "code.gitea.io/gitea/modules/log" + "code.gitea.io/gitea/modules/setting" + "code.gitea.io/gitea/modules/template" + "code.gitea.io/git" ) const ( diff --git a/routers/repo/http.go b/routers/repo/http.go index 5a3d331fd1..a51fa9f176 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -20,13 +20,13 @@ import ( "strings" "time" - "github.com/go-gitea/git" + "code.gitea.io/git" - "github.com/go-gitea/gitea/models" - "github.com/go-gitea/gitea/modules/base" - "github.com/go-gitea/gitea/modules/context" - "github.com/go-gitea/gitea/modules/log" - "github.com/go-gitea/gitea/modules/setting" + "code.gitea.io/gitea/models" + "code.gitea.io/gitea/modules/base" + "code.gitea.io/gitea/modules/context" + "code.gitea.io/gitea/modules/log" + "code.gitea.io/gitea/modules/setting" ) func HTTP(ctx *context.Context) { diff --git a/routers/repo/issue.go b/routers/repo/issue.go index df647a6314..3b5abf8962 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -17,13 +17,13 @@ import ( "github.com/Unknwon/com" "github.com/Unknwon/paginater" - "github.com/go-gitea/gitea/models" - "github.com/go-gitea/gitea/modules/auth" - "github.com/go-gitea/gitea/modules/base" - "github.com/go-gitea/gitea/modules/context" - "github.com/go-gitea/gitea/modules/log" - "github.com/go-gitea/gitea/modules/markdown" - "github.com/go-gitea/gitea/modules/setting" + "code.gitea.io/gitea/models" + "code.gitea.io/gitea/modules/auth" + "code.gitea.io/gitea/modules/base" + "code.gitea.io/gitea/modules/context" + "code.gitea.io/gitea/modules/log" + "code.gitea.io/gitea/modules/markdown" + "code.gitea.io/gitea/modules/setting" ) const ( diff --git a/routers/repo/middlewares.go b/routers/repo/middlewares.go index 02706dbdb3..5ffa100bff 100644 --- a/routers/repo/middlewares.go +++ b/routers/repo/middlewares.go @@ -3,9 +3,9 @@ package repo import ( "fmt" - "github.com/go-gitea/gitea/models" - "github.com/go-gitea/gitea/modules/context" - "github.com/go-gitea/git" + "code.gitea.io/gitea/models" + "code.gitea.io/gitea/modules/context" + "code.gitea.io/git" ) func SetEditorconfigIfExists(ctx *context.Context) { diff --git a/routers/repo/pull.go b/routers/repo/pull.go index 1a5b1dd9e8..117b5684ec 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -11,13 +11,13 @@ import ( "strings" "github.com/Unknwon/com" - "github.com/go-gitea/gitea/models" - "github.com/go-gitea/gitea/modules/auth" - "github.com/go-gitea/gitea/modules/base" - "github.com/go-gitea/gitea/modules/context" - "github.com/go-gitea/gitea/modules/log" - "github.com/go-gitea/gitea/modules/setting" - "github.com/go-gitea/git" + "code.gitea.io/gitea/models" + "code.gitea.io/gitea/modules/auth" + "code.gitea.io/gitea/modules/base" + "code.gitea.io/gitea/modules/context" + "code.gitea.io/gitea/modules/log" + "code.gitea.io/gitea/modules/setting" + "code.gitea.io/git" ) const ( diff --git a/routers/repo/release.go b/routers/repo/release.go index afdc61a22a..7010c832a0 100644 --- a/routers/repo/release.go +++ b/routers/repo/release.go @@ -8,12 +8,12 @@ import ( "fmt" "github.com/Unknwon/paginater" - "github.com/go-gitea/gitea/models" - "github.com/go-gitea/gitea/modules/auth" - "github.com/go-gitea/gitea/modules/base" - "github.com/go-gitea/gitea/modules/context" - "github.com/go-gitea/gitea/modules/log" - "github.com/go-gitea/gitea/modules/markdown" + "code.gitea.io/gitea/models" + "code.gitea.io/gitea/modules/auth" + "code.gitea.io/gitea/modules/base" + "code.gitea.io/gitea/modules/context" + "code.gitea.io/gitea/modules/log" + "code.gitea.io/gitea/modules/markdown" ) const ( diff --git a/routers/repo/repo.go b/routers/repo/repo.go index 4bf6d41d15..c3e9faf499 100644 --- a/routers/repo/repo.go +++ b/routers/repo/repo.go @@ -12,14 +12,14 @@ import ( "github.com/Unknwon/com" - "github.com/go-gitea/git" - - "github.com/go-gitea/gitea/models" - "github.com/go-gitea/gitea/modules/auth" - "github.com/go-gitea/gitea/modules/base" - "github.com/go-gitea/gitea/modules/context" - "github.com/go-gitea/gitea/modules/log" - "github.com/go-gitea/gitea/modules/setting" + "code.gitea.io/git" + + "code.gitea.io/gitea/models" + "code.gitea.io/gitea/modules/auth" + "code.gitea.io/gitea/modules/base" + "code.gitea.io/gitea/modules/context" + "code.gitea.io/gitea/modules/log" + "code.gitea.io/gitea/modules/setting" ) const ( diff --git a/routers/repo/setting.go b/routers/repo/setting.go index ae5550c64b..736a7fdf9a 100644 --- a/routers/repo/setting.go +++ b/routers/repo/setting.go @@ -8,14 +8,14 @@ import ( "strings" "time" - "github.com/go-gitea/git" - - "github.com/go-gitea/gitea/models" - "github.com/go-gitea/gitea/modules/auth" - "github.com/go-gitea/gitea/modules/base" - "github.com/go-gitea/gitea/modules/context" - "github.com/go-gitea/gitea/modules/log" - "github.com/go-gitea/gitea/modules/setting" + "code.gitea.io/git" + + "code.gitea.io/gitea/models" + "code.gitea.io/gitea/modules/auth" + "code.gitea.io/gitea/modules/base" + "code.gitea.io/gitea/modules/context" + "code.gitea.io/gitea/modules/log" + "code.gitea.io/gitea/modules/setting" ) const ( diff --git a/routers/repo/view.go b/routers/repo/view.go index 499cf2d470..d67ee9540f 100644 --- a/routers/repo/view.go +++ b/routers/repo/view.go @@ -13,15 +13,15 @@ import ( "strings" "github.com/Unknwon/paginater" - "github.com/go-gitea/gitea/models" - "github.com/go-gitea/gitea/modules/base" - "github.com/go-gitea/gitea/modules/context" - "github.com/go-gitea/gitea/modules/log" - "github.com/go-gitea/gitea/modules/markdown" - "github.com/go-gitea/gitea/modules/setting" - "github.com/go-gitea/gitea/modules/template" - "github.com/go-gitea/gitea/modules/template/highlight" - "github.com/go-gitea/git" + "code.gitea.io/gitea/models" + "code.gitea.io/gitea/modules/base" + "code.gitea.io/gitea/modules/context" + "code.gitea.io/gitea/modules/log" + "code.gitea.io/gitea/modules/markdown" + "code.gitea.io/gitea/modules/setting" + "code.gitea.io/gitea/modules/template" + "code.gitea.io/gitea/modules/template/highlight" + "code.gitea.io/git" ) const ( diff --git a/routers/repo/webhook.go b/routers/repo/webhook.go index 931ec1185f..2f798260e2 100644 --- a/routers/repo/webhook.go +++ b/routers/repo/webhook.go @@ -12,14 +12,14 @@ import ( "github.com/Unknwon/com" - "github.com/go-gitea/git" - api "github.com/go-gitea/go-sdk/gitea" - - "github.com/go-gitea/gitea/models" - "github.com/go-gitea/gitea/modules/auth" - "github.com/go-gitea/gitea/modules/base" - "github.com/go-gitea/gitea/modules/context" - "github.com/go-gitea/gitea/modules/setting" + "code.gitea.io/git" + api "code.gitea.io/go-sdk/gitea" + + "code.gitea.io/gitea/models" + "code.gitea.io/gitea/modules/auth" + "code.gitea.io/gitea/modules/base" + "code.gitea.io/gitea/modules/context" + "code.gitea.io/gitea/modules/setting" ) const ( @@ -32,7 +32,7 @@ func Webhooks(ctx *context.Context) { ctx.Data["Title"] = ctx.Tr("repo.settings.hooks") ctx.Data["PageIsSettingsHooks"] = true ctx.Data["BaseLink"] = ctx.Repo.RepoLink - ctx.Data["Description"] = ctx.Tr("repo.settings.hooks_desc", "https://godoc.org/github.com/go-gitea/go-sdk/gitea") + ctx.Data["Description"] = ctx.Tr("repo.settings.hooks_desc", "https://godoc.org/code.gitea.io/go-sdk/gitea") ws, err := models.GetWebhooksByRepoID(ctx.Repo.Repository.ID) if err != nil { diff --git a/routers/repo/wiki.go b/routers/repo/wiki.go index b930ab07ac..337f095903 100644 --- a/routers/repo/wiki.go +++ b/routers/repo/wiki.go @@ -9,13 +9,13 @@ import ( "strings" "time" - "github.com/go-gitea/git" + "code.gitea.io/git" - "github.com/go-gitea/gitea/models" - "github.com/go-gitea/gitea/modules/auth" - "github.com/go-gitea/gitea/modules/base" - "github.com/go-gitea/gitea/modules/context" - "github.com/go-gitea/gitea/modules/markdown" + "code.gitea.io/gitea/models" + "code.gitea.io/gitea/modules/auth" + "code.gitea.io/gitea/modules/base" + "code.gitea.io/gitea/modules/context" + "code.gitea.io/gitea/modules/markdown" ) const ( |