boom, fixed the bug that was causing multiple attempts at clearing a repository to fail