workaround for https://github.com/libgit2/pygit2/issues/432
calling the low level method is faster anyway