don't `goto done' if calloc fails otherwise we call got_repo_close with repo being NULL and segfault there. ok stsp