[LibGit2] Fix .git directory in Clone too.