git: add support to test the git version

While most of the git CLI is fairly stable and backward compatible,
it happens that it breaks. For instance git update-index --cacheinfo
was given arguments delimited by spaces but is now (2.1.0) expecting
them with commas.