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.
gitea/services/repository
Jason Song 5bdf805e05
Sync branches to DB immediately when handle git hook calling (#29493)
Unlike other async processing in the queue, we should sync branches to
the DB immediately when handling git hook calling. If it fails, users
can see the error message in the output of the git command.

It can avoid potential inconsistency issues, and help #29494.

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
11 months ago
..
archiver Move context from modules to services (#29440) 12 months ago
files Move context from modules to services (#29440) 12 months ago
adopt.go Start to migrate from `util.OptionalBool` to `optional.Option[bool]` (#29329) 12 months ago
adopt_test.go Use more specific test methods (#24265) 2 years ago
avatar.go Improve avatar uploading / resizing / compressing, remove Fomantic card module (#24653) 2 years ago
avatar_test.go Use context parameter in services/repository (#23186) 2 years ago
branch.go Sync branches to DB immediately when handle git hook calling (#29493) 11 months ago
cache.go Always enable caches (#28527) 1 year ago
check.go Update tool dependencies (#29030) 1 year ago
collaboration.go Add user blocking (#29028) 11 months ago
collaboration_test.go Add user blocking (#29028) 11 months ago
commit.go Move context from modules to services (#29440) 12 months ago
contributors_graph.go Implement code frequency graph (#29191) 12 months ago
contributors_graph_test.go Implement contributors graph (#27882) 12 months ago
create.go Make wiki default branch name changable (#29603) 11 months ago
create_test.go bump to use go 1.22 (#29119) 12 months ago
delete.go Move some asymkey functions to service layer (#28894) 11 months ago
delete_test.go Delete repos of org when purge delete user (#27273) 1 year ago
fork.go Add user blocking (#29028) 11 months ago
fork_test.go Add option to prohibit fork if user reached maximum limit of repositories (#21848) 2 years ago
generate.go Move generate from module to service (#29465) 11 months ago
generate_test.go Move generate from module to service (#29465) 11 months ago
hooks.go Simplify how git repositories are opened (#28937) 1 year ago
init.go Move generate from module to service (#29465) 11 months ago
lfs.go Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 12 months ago
lfs_test.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 1 year ago
main_test.go make writing main test easier (#27270) 1 year ago
migrate.go Make wiki default branch name changable (#29603) 11 months ago
push.go Sync branches to DB immediately when handle git hook calling (#29493) 11 months ago
repository.go Remove unnecessary parameter (#27671) 1 year ago
repository_test.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
review.go Use context parameter in services/repository (#23186) 2 years ago
review_test.go Use context parameter in services/repository (#23186) 2 years ago
setting.go Fix an actions schedule bug (#28942) 1 year ago
template.go Move generate from module to service (#29465) 11 months ago
transfer.go Add user blocking (#29028) 11 months ago
transfer_test.go Move some repository transfer functions to service layer (#28855) 1 year ago