Eric Traut
c37f817556
Reclaim abandoned trusted Git repositories ( #61180 )
...
## Why
Temporary trusted Git repositories can remain on disk when a process exits without running directory cleanup.
## What changed
Use `MarketplaceStagingDir` for trusted Git repositories under Codex home's `.tmp/.staging` directory. Clean up abandoned staging directories before creating a repository, while ownership locks protect repositories still in use. Reject a symlinked `.staging` directory to keep `GIT_DIR` inside Codex home.
## Testing
Update the cross-process staging test to create trusted Git repositories and verify that cleanup preserves live owners, reclaims a repository after its process exits, and leaves a concurrent checkout intact.
GitOrigin-RevId: f45b60db82814b4bcc09365f68d808c73d2d5378
2026-11-12 21:02:43 +00:00
..
2026-08-07 13:23:23 +00:00
2026-09-28 23:32:45 +00:00
2026-10-20 22:25:54 +00:00
2026-10-08 18:42:58 +00:00
2026-11-10 05:20:44 +00:00
2026-11-05 03:49:13 +00:00
2026-09-22 23:37:39 +00:00
2026-08-02 02:29:45 +00:00
2026-09-19 00:55:08 +00:00
2026-08-24 08:43:25 +00:00
2026-06-16 00:13:27 +00:00
2026-10-20 20:27:32 +00:00
2026-08-11 19:26:41 +00:00
2026-08-11 19:26:41 +00:00
2026-10-19 17:02:20 +00:00
2026-10-19 17:02:20 +00:00
2026-07-15 19:51:37 +00:00
2026-08-07 13:23:23 +00:00
2026-11-07 03:08:46 +00:00
2026-10-23 14:15:03 +00:00
2026-08-09 01:03:34 +00:00
2026-10-19 15:15:17 +00:00
2026-10-19 17:02:20 +00:00
2026-11-11 23:36:19 +00:00
2026-10-22 01:42:11 +00:00
2026-11-09 22:20:07 +00:00
2026-11-09 22:20:07 +00:00
2026-11-12 21:02:43 +00:00
2026-11-05 03:49:13 +00:00
2026-08-26 19:02:02 +00:00
2026-11-10 02:45:30 +00:00
2026-08-28 00:17:08 +00:00
2026-10-30 20:39:47 +00:00
2026-11-12 14:07:50 +00:00
2026-10-26 22:23:59 +00:00
2026-11-12 14:07:50 +00:00
2026-11-12 14:07:50 +00:00
2026-11-07 03:08:46 +00:00
2026-10-22 20:55:25 +00:00
2026-11-12 14:07:50 +00:00
2026-10-22 20:55:25 +00:00
2026-10-22 20:55:25 +00:00
2026-08-25 19:38:39 +00:00
2026-11-12 21:02:43 +00:00
2026-10-20 22:27:04 +00:00
2026-08-02 02:29:45 +00:00
2026-11-10 05:20:44 +00:00
2026-11-10 05:20:44 +00:00
2026-11-02 19:39:23 +00:00
2026-10-01 15:57:03 +00:00
2026-09-29 04:38:37 +00:00
2026-08-02 02:29:45 +00:00
2026-08-02 02:29:45 +00:00
2026-10-23 14:15:03 +00:00
2026-11-05 03:49:13 +00:00
2026-11-05 03:49:13 +00:00
2026-08-13 00:39:04 +00:00
2026-08-20 16:22:45 +00:00
2026-08-12 19:09:48 +00:00
2026-11-05 03:49:13 +00:00
2026-10-19 15:15:17 +00:00
2026-11-05 03:49:13 +00:00
2026-11-05 03:49:13 +00:00
2026-11-05 03:49:13 +00:00
2026-11-05 03:49:13 +00:00
2026-09-17 21:35:44 +00:00
2026-11-10 02:45:30 +00:00
2026-11-10 02:45:30 +00:00
2026-11-05 03:49:13 +00:00
2026-11-05 03:49:13 +00:00
2026-07-24 23:36:11 +00:00
2026-11-05 03:49:13 +00:00
2026-11-06 00:23:38 +00:00
2026-11-06 00:23:38 +00:00
2026-09-19 00:14:07 +00:00
2026-09-19 00:53:17 +00:00
2026-08-07 13:54:24 +00:00
2026-10-17 02:13:08 +00:00
2026-10-17 02:13:08 +00:00
2026-08-20 05:10:57 +00:00
2026-09-28 23:32:45 +00:00
2026-11-05 03:49:13 +00:00
2026-10-20 20:27:32 +00:00