diff options
Diffstat (limited to 'models')
34 files changed, 44 insertions, 39 deletions
diff --git a/models/action.go b/models/action.go index 9bf2905c99..d3b53f6738 100644 --- a/models/action.go +++ b/models/action.go @@ -23,7 +23,7 @@ import ( api "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/modules/timeutil" - "github.com/Unknwon/com" + "github.com/unknwon/com" "xorm.io/builder" ) diff --git a/models/admin.go b/models/admin.go index 4585657e9f..271c5307a0 100644 --- a/models/admin.go +++ b/models/admin.go @@ -11,7 +11,7 @@ import ( "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/timeutil" - "github.com/Unknwon/com" + "github.com/unknwon/com" ) //NoticeType describes the notice type diff --git a/models/branches.go b/models/branches.go index 62b1c208f6..2a99d98955 100644 --- a/models/branches.go +++ b/models/branches.go @@ -14,7 +14,7 @@ import ( "code.gitea.io/gitea/modules/timeutil" "code.gitea.io/gitea/modules/util" - "github.com/Unknwon/com" + "github.com/unknwon/com" ) const ( diff --git a/models/git_diff.go b/models/git_diff.go index 62bb35be07..b822685409 100644 --- a/models/git_diff.go +++ b/models/git_diff.go @@ -25,8 +25,9 @@ import ( "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/process" "code.gitea.io/gitea/modules/setting" - "github.com/Unknwon/com" + "github.com/sergi/go-diff/diffmatchpatch" + "github.com/unknwon/com" stdcharset "golang.org/x/net/html/charset" "golang.org/x/text/transform" ) diff --git a/models/helper_directory.go b/models/helper_directory.go index 417402b41c..813f0577bc 100644 --- a/models/helper_directory.go +++ b/models/helper_directory.go @@ -14,7 +14,7 @@ import ( "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" - "github.com/Unknwon/com" + "github.com/unknwon/com" ) // LocalCopyPath returns the local repository temporary copy path. diff --git a/models/issue.go b/models/issue.go index ddfa2a2e14..fc74c73162 100644 --- a/models/issue.go +++ b/models/issue.go @@ -19,8 +19,8 @@ import ( "code.gitea.io/gitea/modules/timeutil" "code.gitea.io/gitea/modules/util" - "github.com/Unknwon/com" "github.com/go-xorm/xorm" + "github.com/unknwon/com" "xorm.io/builder" ) diff --git a/models/issue_assignees.go b/models/issue_assignees.go index d88a4218cf..1f504a9950 100644 --- a/models/issue_assignees.go +++ b/models/issue_assignees.go @@ -8,8 +8,8 @@ import ( "fmt" "code.gitea.io/gitea/modules/log" - api "code.gitea.io/gitea/modules/structs" + "github.com/go-xorm/xorm" ) diff --git a/models/issue_comment.go b/models/issue_comment.go index 7eb13ed7af..ad1a59e9d3 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -19,8 +19,8 @@ import ( api "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/modules/timeutil" - "github.com/Unknwon/com" "github.com/go-xorm/xorm" + "github.com/unknwon/com" "xorm.io/builder" ) diff --git a/models/issue_label.go b/models/issue_label.go index 7af6060f87..686897f63c 100644 --- a/models/issue_label.go +++ b/models/issue_label.go @@ -11,9 +11,9 @@ import ( "strconv" "strings" - "github.com/go-xorm/xorm" - api "code.gitea.io/gitea/modules/structs" + + "github.com/go-xorm/xorm" ) var labelColorPattern = regexp.MustCompile("#([a-fA-F0-9]{6})") diff --git a/models/issue_mail.go b/models/issue_mail.go index 01a12b16d2..829c4cea78 100644 --- a/models/issue_mail.go +++ b/models/issue_mail.go @@ -8,11 +8,11 @@ package models import ( "fmt" - "github.com/Unknwon/com" - "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/markup" "code.gitea.io/gitea/modules/setting" + + "github.com/unknwon/com" ) func (issue *Issue) mailSubject() string { diff --git a/models/lfs_lock.go b/models/lfs_lock.go index c38686796b..7ea1dc8660 100644 --- a/models/lfs_lock.go +++ b/models/lfs_lock.go @@ -13,6 +13,7 @@ import ( "code.gitea.io/gitea/modules/log" api "code.gitea.io/gitea/modules/structs" + "github.com/go-xorm/xorm" ) diff --git a/models/login_source.go b/models/login_source.go index f52679dab6..9381ed034f 100644 --- a/models/login_source.go +++ b/models/login_source.go @@ -21,8 +21,8 @@ import ( "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/timeutil" - "github.com/Unknwon/com" "github.com/go-xorm/xorm" + "github.com/unknwon/com" "xorm.io/core" ) diff --git a/models/mail.go b/models/mail.go index 31f22519cf..2c72818cec 100644 --- a/models/mail.go +++ b/models/mail.go @@ -17,6 +17,7 @@ import ( "code.gitea.io/gitea/modules/markup/markdown" "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/timeutil" + "gopkg.in/gomail.v2" ) diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index 9ffcfb4df2..fc086bfd46 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -17,14 +17,14 @@ import ( "strings" "time" - "github.com/Unknwon/com" - "github.com/go-xorm/xorm" - gouuid "github.com/satori/go.uuid" - ini "gopkg.in/ini.v1" - "code.gitea.io/gitea/modules/generate" "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" + + "github.com/go-xorm/xorm" + gouuid "github.com/satori/go.uuid" + "github.com/unknwon/com" + ini "gopkg.in/ini.v1" ) const minDBVersion = 4 diff --git a/models/migrations/v13.go b/models/migrations/v13.go index f81271f981..8b6b38cadf 100644 --- a/models/migrations/v13.go +++ b/models/migrations/v13.go @@ -9,8 +9,8 @@ import ( "fmt" "strings" - "github.com/Unknwon/com" "github.com/go-xorm/xorm" + "github.com/unknwon/com" ) func ldapUseSSLToSecurityProtocol(x *xorm.Engine) error { diff --git a/models/migrations/v19.go b/models/migrations/v19.go index 44338eb8ba..9793f405ad 100644 --- a/models/migrations/v19.go +++ b/models/migrations/v19.go @@ -13,8 +13,8 @@ import ( "code.gitea.io/gitea/modules/setting" - "github.com/Unknwon/com" "github.com/go-xorm/xorm" + "github.com/unknwon/com" ) func generateAndMigrateGitHooks(x *xorm.Engine) (err error) { diff --git a/models/migrations/v21.go b/models/migrations/v21.go index 890f4de227..65cae2ac03 100644 --- a/models/migrations/v21.go +++ b/models/migrations/v21.go @@ -11,8 +11,8 @@ import ( "code.gitea.io/gitea/modules/setting" - "github.com/Unknwon/com" "github.com/go-xorm/xorm" + "github.com/unknwon/com" ) const ( diff --git a/models/migrations/v22.go b/models/migrations/v22.go index 7774f6fd9a..f991ae25fa 100644 --- a/models/migrations/v22.go +++ b/models/migrations/v22.go @@ -13,8 +13,8 @@ import ( "code.gitea.io/gitea/modules/setting" - "github.com/Unknwon/com" "github.com/go-xorm/xorm" + "github.com/unknwon/com" ) func generateAndMigrateWikiGitHooks(x *xorm.Engine) (err error) { diff --git a/models/migrations/v26.go b/models/migrations/v26.go index 636d1f76ca..3d88c62923 100644 --- a/models/migrations/v26.go +++ b/models/migrations/v26.go @@ -16,8 +16,8 @@ import ( "code.gitea.io/gitea/modules/setting" - "github.com/Unknwon/com" "github.com/go-xorm/xorm" + "github.com/unknwon/com" ) func generateAndMigrateGitHookChains(x *xorm.Engine) (err error) { diff --git a/models/migrations/v55.go b/models/migrations/v55.go index 32f4e8ac04..c20c51616e 100644 --- a/models/migrations/v55.go +++ b/models/migrations/v55.go @@ -8,6 +8,7 @@ import ( "fmt" "code.gitea.io/gitea/models" + "github.com/go-xorm/xorm" ) diff --git a/models/oauth2_application.go b/models/oauth2_application.go index 04c3d7721c..46355a0b3f 100644 --- a/models/oauth2_application.go +++ b/models/oauth2_application.go @@ -15,10 +15,10 @@ import ( "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/timeutil" - "github.com/Unknwon/com" "github.com/dgrijalva/jwt-go" "github.com/go-xorm/xorm" uuid "github.com/satori/go.uuid" + "github.com/unknwon/com" "golang.org/x/crypto/bcrypt" ) diff --git a/models/org.go b/models/org.go index 7032f6698e..909657cffd 100644 --- a/models/org.go +++ b/models/org.go @@ -14,8 +14,8 @@ import ( "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/structs" - "github.com/Unknwon/com" "github.com/go-xorm/xorm" + "github.com/unknwon/com" "xorm.io/builder" ) diff --git a/models/pull.go b/models/pull.go index b1ceca472c..ecb5c1345e 100644 --- a/models/pull.go +++ b/models/pull.go @@ -25,8 +25,8 @@ import ( "code.gitea.io/gitea/modules/sync" "code.gitea.io/gitea/modules/timeutil" - "github.com/Unknwon/com" "github.com/go-xorm/xorm" + "github.com/unknwon/com" ) var pullRequestQueue = sync.NewUniqueQueue(setting.Repository.PullRequestQueueLength) diff --git a/models/repo.go b/models/repo.go index 50e1ad0bb7..a70350576e 100644 --- a/models/repo.go +++ b/models/repo.go @@ -36,8 +36,8 @@ import ( "code.gitea.io/gitea/modules/sync" "code.gitea.io/gitea/modules/timeutil" - "github.com/Unknwon/com" "github.com/go-xorm/xorm" + "github.com/unknwon/com" ini "gopkg.in/ini.v1" "xorm.io/builder" ) diff --git a/models/repo_mirror.go b/models/repo_mirror.go index 02c87daf69..9801c05ae4 100644 --- a/models/repo_mirror.go +++ b/models/repo_mirror.go @@ -20,9 +20,9 @@ import ( "code.gitea.io/gitea/modules/timeutil" "code.gitea.io/gitea/modules/util" - "github.com/Unknwon/com" "github.com/go-xorm/xorm" "github.com/mcuadros/go-version" + "github.com/unknwon/com" ) // MirrorQueue holds an UniqueQueue object of the mirror diff --git a/models/repo_redirect.go b/models/repo_redirect.go index 8847a0889c..2714121a6c 100644 --- a/models/repo_redirect.go +++ b/models/repo_redirect.go @@ -5,8 +5,9 @@ package models import ( - "code.gitea.io/gitea/modules/log" "strings" + + "code.gitea.io/gitea/modules/log" ) // RepoRedirect represents that a repo name should be redirected to another diff --git a/models/repo_test.go b/models/repo_test.go index 8c3f14695d..bf10de8d99 100644 --- a/models/repo_test.go +++ b/models/repo_test.go @@ -14,8 +14,8 @@ import ( "code.gitea.io/gitea/modules/markup" - "github.com/Unknwon/com" "github.com/stretchr/testify/assert" + "github.com/unknwon/com" ) func TestRepo(t *testing.T) { diff --git a/models/repo_unit.go b/models/repo_unit.go index b2c88d3193..2fc1c40fa2 100644 --- a/models/repo_unit.go +++ b/models/repo_unit.go @@ -9,8 +9,8 @@ import ( "code.gitea.io/gitea/modules/timeutil" - "github.com/Unknwon/com" "github.com/go-xorm/xorm" + "github.com/unknwon/com" "xorm.io/core" ) diff --git a/models/ssh_key.go b/models/ssh_key.go index 874f6b19f7..315b32e8d5 100644 --- a/models/ssh_key.go +++ b/models/ssh_key.go @@ -28,8 +28,8 @@ import ( "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/timeutil" - "github.com/Unknwon/com" "github.com/go-xorm/xorm" + "github.com/unknwon/com" "golang.org/x/crypto/ssh" "xorm.io/builder" ) diff --git a/models/unit_tests.go b/models/unit_tests.go index 9dadf2e128..80dc4feb96 100644 --- a/models/unit_tests.go +++ b/models/unit_tests.go @@ -17,9 +17,9 @@ import ( "code.gitea.io/gitea/modules/base" "code.gitea.io/gitea/modules/setting" - "github.com/Unknwon/com" "github.com/go-xorm/xorm" "github.com/stretchr/testify/assert" + "github.com/unknwon/com" "gopkg.in/testfixtures.v2" "xorm.io/core" ) diff --git a/models/upload.go b/models/upload.go index 65ce1223c8..65b3220c12 100644 --- a/models/upload.go +++ b/models/upload.go @@ -12,10 +12,10 @@ import ( "os" "path" - "github.com/Unknwon/com" - gouuid "github.com/satori/go.uuid" - "code.gitea.io/gitea/modules/setting" + + gouuid "github.com/satori/go.uuid" + "github.com/unknwon/com" ) // ____ ___ .__ .___ ___________.___.__ diff --git a/models/user.go b/models/user.go index 3c0c581a1d..037ae0397b 100644 --- a/models/user.go +++ b/models/user.go @@ -32,8 +32,8 @@ import ( "code.gitea.io/gitea/modules/timeutil" "code.gitea.io/gitea/modules/util" - "github.com/Unknwon/com" "github.com/go-xorm/xorm" + "github.com/unknwon/com" "golang.org/x/crypto/argon2" "golang.org/x/crypto/bcrypt" "golang.org/x/crypto/pbkdf2" diff --git a/models/webhook.go b/models/webhook.go index 1d41f2a969..4eda08fdb5 100644 --- a/models/webhook.go +++ b/models/webhook.go @@ -25,8 +25,8 @@ import ( "code.gitea.io/gitea/modules/sync" "code.gitea.io/gitea/modules/timeutil" - "github.com/Unknwon/com" gouuid "github.com/satori/go.uuid" + "github.com/unknwon/com" ) // HookQueue is a global queue of web hooks diff --git a/models/wiki.go b/models/wiki.go index d47f58f5a3..0460e0f079 100644 --- a/models/wiki.go +++ b/models/wiki.go @@ -15,7 +15,7 @@ import ( "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/sync" - "github.com/Unknwon/com" + "github.com/unknwon/com" ) var ( |