gitea/routers/common
Lunny Xiao d2e994db2c
Move git config/remote to gitrepo package and add global lock to resolve possible conflict when updating repository git config file (#35151)
Partially fix #32018 

`git config` and `git remote` write operations create a temporary file
named `config.lock`. Since these operations are not atomic, they must
not be run in parallel. If two requests attempt to modify the same
repository concurrently—such as during a compare operation—one may fail
due to the presence of an existing `config.lock` file.

In cases where `config.lock` is left behind due to an unexpected program
exit, a global lock mechanism could allow us to safely remove the stale
lock file when a related error is detected. While this behavior is not
yet implemented in this PR, it is planned for a future enhancement.

---------

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-09-01 18:47:04 +00:00
..
actions.go Fix bug on downloading job logs (#34041) 2025-03-27 17:20:56 -07:00
auth.go
blockexpensive.go Add a config option to block "expensive" pages for anonymous users (#34024) 2025-03-30 05:26:19 +00:00
blockexpensive_test.go Add a config option to block "expensive" pages for anonymous users (#34024) 2025-03-30 05:26:19 +00:00
codesearch.go
compare.go Move git config/remote to gitrepo package and add global lock to resolve possible conflict when updating repository git config file (#35151) 2025-09-01 18:47:04 +00:00
db.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
deadline.go
errpage.go
errpage_test.go
lfs.go
markup.go Fix footnote jump behavior on the issue page. (#34621) 2025-06-09 17:18:11 +00:00
middleware.go
pagetmpl.go Refactor head navbar icons (#34922) 2025-07-04 13:03:22 +02:00
qos.go Add middleware for request prioritization (#33951) 2025-04-14 16:25:48 +02:00
qos_test.go Add middleware for request prioritization (#33951) 2025-04-14 16:25:48 +02:00
redirect.go
serve.go