Removing a repository completely can result in data corruption for users, since a user's `rad/sigrefs` are the ground truth of their state, and any fork of them results in errors in the protocol. Instead of `rad rm`, we replace it with `rad clean` that removes all remotes other than the local peer's namespace and the delegates'. The delegates are also necessary to keep, since the repository's identity is dependent on them. Note that the remotes that were cleaned will be populated again upon fetching, as long as they are tracked. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett |
||
|---|---|---|
| .. | ||
| data | ||
| commands.rs | ||