A leftover folder refuses a new repository's name, and says so

createRepo claims the repository's directory with a plain mkdir before git runs. When the directory is already there but no repository row owns it (a create still under way, or a folder left behind), the create is refused as dir_in_the_way, not name_taken: no repository has that name, so "already has a repository by that name" would send the person looking for one that is not there.

Deleting a base repository now also removes its sealed repositories' directories, so a delete leaves no such leftover behind.

Try it: with a folder already under the owner's repository directory and no repository by that name, open /new, give that name and submit; the message above sits beside Name. In the terminal, press the new-repository key and give the same name.

Pinned by test/repo-borrowers.test.ts (a leftover directory, and two creates racing for one name, both answer dir_in_the_way).

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs