Fix for pre-17.1.10 versions of Git.