>  If you could also come up with a failing test, that'd be awesome

Done. https://github.com/libgit2/libgit2sharp/pull/533