You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/models
Lunny Xiao e644cc9448
Fix wrong xorm get usage on migration (#27111)
Fix the bug on try.gitea.io

```log
2023/09/18 01:48:41 ...ations/migrations.go:635:Migrate() [I] Migration[276]: Add RemoteAddress to mirrors
2023/09/18 01:48:41 routers/common/db.go:34:InitDBEngine() [E] ORM engine initialization attempt #7/10 failed. Error: migrate: migration[276]: Add RemoteAddress to mirrors failed: exit status 128 - fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
 - fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
```

Caused by #26952

---------

Co-authored-by: Jason Song <i@wolfogre.com>
9 months ago
..
actions Next round of `db.DefaultContext` refactor (#27089) 10 months ago
activities Reduce usage of `db.DefaultContext` (#27073) 10 months ago
admin Next round of `db.DefaultContext` refactor (#27089) 10 months ago
asymkey Reduce usage of `db.DefaultContext` (#27073) 10 months ago
auth Next round of `db.DefaultContext` refactor (#27089) 10 months ago
avatars Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 10 months ago
db Improve DeleteByID (#26904) 10 months ago
dbfs Fix content holes in Actions task logs file (#25560) 1 year ago
fixtures Replace 'userxx' with 'orgxx' in all test files when the user type is org (#27052) 10 months ago
git Search branches (#27055) 10 months ago
issues Next round of `db.DefaultContext` refactor (#27089) 10 months ago
migrations Fix wrong xorm get usage on migration (#27111) 9 months ago
organization Next round of `db.DefaultContext` refactor (#27089) 10 months ago
packages move repository deletion to service layer (#26948) 10 months ago
perm move repository deletion to service layer (#26948) 10 months ago
project Refactor project templates (#26448) 11 months ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo Add `RemoteAddress` to mirrors (#26952) 10 months ago
secret Refactor secrets modification logic (#26873) 10 months ago
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 1 year ago
system Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 10 months ago
unit Use `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804) 10 months ago
unittest Replace `interface{}` with `any` (#25686) 1 year ago
user Next round of `db.DefaultContext` refactor (#27089) 10 months ago
webhook Replace `interface{}` with `any` (#25686) 1 year ago
error.go Sync branches into databases (#22743) 1 year ago
fixture_generation.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go move repository deletion to service layer (#26948) 10 months ago
org.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
org_team.go Use db.WithTx for AddTeamMember to avoid ctx abuse (#27095) 10 months ago
org_team_test.go Reduce usage of `db.DefaultContext` (#27073) 10 months ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go move repository deletion to service layer (#26948) 10 months ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Next round of `db.DefaultContext` refactor (#27089) 10 months ago
repo_transfer_test.go Next round of `db.DefaultContext` refactor (#27089) 10 months ago