try a git clone with libgit2 (works even though the error reporting is bad)