With https://github.com/libgit2/libgit2/issues/1291 this should not be needed any more. It's just temporary atm.