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
..
2025-07-16 11:22:45 +00:00
2025-08-28 03:52:43 +00:00
2025-01-09 09:21:47 +08:00
2025-06-12 03:59:33 +00:00
2025-07-03 03:02:38 +00:00
2025-06-18 01:48:09 +00:00
2025-04-01 09:42:10 +00:00
2025-07-03 03:02:38 +00:00
2025-06-27 21:48:03 +08:00
2025-04-09 16:34:38 +00:00
2025-06-18 01:48:09 +00:00
2025-06-27 07:59:55 +02:00
2024-11-11 04:07:54 +08:00
2025-03-31 01:53:48 -04:00
2025-03-31 01:53:48 -04:00
2025-01-09 09:21:47 +08:00
2025-01-09 09:21:47 +08:00
2025-07-01 06:55:36 +08:00
2025-09-01 18:47:04 +00:00
2025-09-01 18:47:04 +00:00
2025-06-18 01:48:09 +00:00
2025-08-27 11:00:01 +00:00
2025-08-18 15:17:19 +00:00
2025-03-31 01:53:48 -04:00
2025-06-18 01:48:09 +00:00
2025-06-27 23:12:25 +08:00
2025-06-18 01:48:09 +00:00
2025-08-27 11:00:01 +00:00
2025-08-28 03:52:43 +00:00
2025-06-18 01:48:09 +00:00
2025-06-27 21:48:03 +08:00
2025-06-18 01:48:09 +00:00
2025-06-25 02:34:21 +00:00
2025-06-24 15:49:31 +00:00
2025-06-27 21:48:03 +08:00
2025-08-11 13:00:20 +02:00
2025-08-28 03:52:43 +00:00
2025-07-17 14:01:11 +00:00
2025-01-09 09:21:47 +08:00
2025-07-10 16:17:28 -07:00
2025-06-12 03:59:33 +00:00
2025-07-16 11:22:45 +00:00
2025-03-23 19:52:43 +00:00
2025-05-09 16:17:08 +00:00
2025-02-20 09:57:40 +00:00
2025-04-01 10:14:01 +00:00
2025-06-18 19:30:40 +00:00
2025-06-18 01:48:09 +00:00
2025-03-31 01:53:48 -04:00
2025-03-31 01:53:48 -04:00
2025-08-28 03:52:43 +00:00
2025-06-18 01:48:09 +00:00
2025-02-21 00:05:40 +08:00
2025-08-28 03:52:43 +00:00
2025-08-21 10:14:35 -07:00
2025-06-09 19:51:02 +00:00
2025-07-17 19:09:54 +08:00
2025-09-01 16:12:05 +00:00
2024-12-24 01:54:19 +00:00
2024-09-06 10:12:41 +00:00
2025-08-28 03:52:43 +00:00
2025-01-21 18:57:07 +00:00
2025-04-08 16:15:28 +00:00
2025-09-01 18:47:04 +00:00
2025-06-07 11:25:08 +03:00
2025-06-18 01:48:09 +00:00
2025-06-12 03:59:33 +00:00
2025-03-31 01:53:48 -04:00
2025-06-30 16:12:25 +08:00
2025-04-01 10:14:01 +00:00
2025-01-09 09:21:47 +08:00
2025-07-30 07:08:59 +00:00
2025-06-18 01:48:09 +00:00
2025-08-27 20:13:31 -07:00
2025-06-20 20:14:00 +08:00
2025-06-12 03:59:33 +00:00