Add git to installed packages. If it's there, cool, it'll reinstall. If not, we now have git.