gitea/routers/web/repo/setting
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
..
avatar.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +07:00
collaboration.go Move RepoTransfer from models to models/repo sub package (#32506) 2024-12-18 11:44:16 +07:00
default_branch.go Move git references checking to gitrepo packages to reduce expose of repository path (#33891) 2025-03-15 19:48:59 +07:00
deploy_key.go Move delete deploy keys into service layer (#32201) 2024-12-18 04:10:38 +07:00
git_hooks.go Refactor error system (#33610) 2025-02-16 22:13:17 +07:00
lfs.go Add support for 3D/CAD file formats preview (#34794) 2025-06-30 16:12:25 +07:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +07:00
protected_branch.go Fix team permissions (#34827) 2025-06-24 21:24:09 +07:00
protected_tag.go Fix team permissions (#34827) 2025-06-24 21:24:09 +07:00
public_access.go Add anonymous access support for private/unlisted repositories (#34051) 2025-03-29 13:26:41 +07:00
secrets.go refactor organization menu (#33928) 2025-04-10 12:12:55 +07:00
setting.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
settings_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +07:00
webhook.go Refactor webhook and fix feishu/lark secret (#34961) 2025-07-06 06:04:08 +07:00