How's this? https://github.com/libgit2/libgit2/commit/b3558d8897b8be1df821c7dc4b8deb79a2955f7b