No idea, but there's [a check to this effect](https://github.com/libgit2/libgit2/blob/5c50f22a93c78190fb7d81802199ff9defc8cf55/src/util.c#L166-L167) in libgit2's implementation.