do we need to real libgit2 return code here?