Remove all targets that depend on git (source_archive and friends), none of them are used during normal build.