diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-04-10 19:26:23 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-04-10 19:26:23 +0000 |
| commit | 8aef478c6b1e9e3f6ebbad6d57f59f1a84a261ea (patch) | |
| tree | 2aa56188b13fc4b8e6a2fdf302dea19afb65a5a7 /tests/push_authorization.rs | |
| parent | 2161e3c0a8169a85111cd6dc01ffe2b0fed1493f (diff) | |
feat: add cleanup-empty-repos subcommand to remove stale events for empty git repos
Adds a maintenance subcommand that scans the LMDB database for kind 30617
(repository announcement) events whose bare git repo on disk is empty or
missing, then removes both the 30617 and any matching 30618 (state) events.
A relay should not serve announcement or state events for a repository with
no git data. This was needed to clean up repos leaked by the bug fixed in
2161e3c, and is useful as an ongoing maintenance tool.
Usage (dry-run by default, stop relay before --execute):
ngit-grasp cleanup-empty-repos [--relay-data-path <path>] [--git-data-path <path>] [--execute]
The relay itself is now invoked as an implicit 'serve' subcommand, preserving
full backward compatibility with existing deployments and env-var configuration.
Diffstat (limited to 'tests/push_authorization.rs')
0 files changed, 0 insertions, 0 deletions