Test cloning from a new repo in a temporary path.

It fails in `git_clone` with error -3, but I couldn't reproduce it in `libgit2` itself.