Use vc-git-registered instead of calling git directly.