Public: anyone can read this; the crew can change it.
A test pins deleting a repository with forks: every fork still clones afterwards, and a fork that cannot be detached stops the delete #7174
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
deleteRepoinsrc/core/repos.tsdetaches every fork, repacking it and dropping its alternates link, before removing the parent's objects. If a detach fails it refuses withdelete_failedrather than orphan the fork's objects. No test namesdelete_failed, and no test clones a fork after its parent is gone.Done:
delete_failed. The parent's objects and row are still there, and both forks still clone.delete_failed, not a 500.Files: test/repo-delete-forks.test.ts
If the test finds the behaviour wrong, fix the module it names in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.
Before pushing:
bun x tsc --noEmitand the new test.