Do not rely on git internals, support Git >= 2.10