mirror of
https://github.com/go-gitea/gitea.git
synced 2025-10-27 05:55:21 +08:00
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> |
||
|---|---|---|
| .. | ||
| eval | ||
| scopedtmpl | ||
| vars | ||
| base.go | ||
| helper_test.go | ||
| helper.go | ||
| htmlrenderer_test.go | ||
| htmlrenderer.go | ||
| mailer.go | ||
| templates_bindata.go | ||
| templates_dynamic.go | ||
| util_avatar.go | ||
| util_date_test.go | ||
| util_date.go | ||
| util_dict.go | ||
| util_format_test.go | ||
| util_format.go | ||
| util_json.go | ||
| util_misc.go | ||
| util_render_test.go | ||
| util_render.go | ||
| util_slice.go | ||
| util_string.go | ||
| util_test.go | ||