Switch to git instead of git-core. Fixes #1790.