Revert "Revert switch to git checkouts, until trunk builds work."

This reverts commit 37e4d8a8d0007007d06ce8292705d82b171b8887.