gitea/routers/api/v1
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
..
activitypub Fix context usages (#35348) 2025-08-27 11:00:01 +07:00
admin Fix updating user visibility (#35036) 2025-07-10 16:17:28 +07:00
misc enforce explanation for necessary nolints and fix bugs (#34883) 2025-06-27 21:48:03 +07:00
notify Refactor error system (#33610) 2025-02-16 22:13:17 +07:00
org Fix updating user visibility (#35036) 2025-07-10 16:17:28 +07:00
packages Add package version api endpoints (#34173) 2025-04-13 20:00:44 +07:00
repo 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
settings Add API endpoint to request contents of multiple files simultaniously (#34139) 2025-04-22 01:20:11 +07:00
shared Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +07:00
swagger Rename UpdateBranch API to RenameBranch API (#35374) 2025-09-01 16:12:05 +07:00
user Add a `login`/`login-name`/`username` disambiguation to affected endpoint parameters and response/request models (#34901) 2025-06-29 21:17:45 +07:00
utils Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +07:00
api.go Rename UpdateBranch API to RenameBranch API (#35374) 2025-09-01 16:12:05 +07:00