handle lack of credentials in libgit2 remote callbacks