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 +07: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 +07:00
blockexpensive_test.go Add a config option to block "expensive" pages for anonymous users (#34024) 2025-03-30 05:26:19 +07:00
codesearch.go Improve issue & code search (#33860) 2025-03-13 11:07:48 +07:00
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 +07:00
db.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
deadline.go Fix milestone deadline and date related problems (#32339) 2024-11-05 07:46:40 +07:00
errpage.go Refactor cache-control (#33861) 2025-03-13 07:04:50 +07:00
errpage_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +07:00
lfs.go Fix LFS route mock, realm, middleware names (#32488) 2024-11-13 16:58:09 +07:00
markup.go Fix footnote jump behavior on the issue page. (#34621) 2025-06-09 17:18:11 +07:00
middleware.go Support performance trace (#32973) 2025-01-21 18:57:07 +07:00
pagetmpl.go Refactor head navbar icons (#34922) 2025-07-04 13:03:22 +07:00
qos.go Add middleware for request prioritization (#33951) 2025-04-14 16:25:48 +07:00
qos_test.go Add middleware for request prioritization (#33951) 2025-04-14 16:25:48 +07:00
redirect.go Refactor AppURL usage (#30885) 2024-05-07 08:26:13 +07:00
serve.go Refactor cache-control (#33861) 2025-03-13 07:04:50 +07:00