use `git -c g.o=v cmd' only when git supports it

Fixes #662.