git: update to v2.2.1

Update to git version v2.2.1, including API changes.